Skip to content

Commit

Permalink
fix: updating getSessionId method to get session id without init new …
Browse files Browse the repository at this point in the history
…webdriver
  • Loading branch information
YamStranger committed Feb 8, 2016
1 parent d9c1e6a commit 4f1581c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -133,7 +133,7 @@ public SessionId getSessionId() {
WebDriver driver = getThreadLocalWebDriver(configuration, webDriverFactory,
inThisTestThread().getCurrentDriverName());
if(driver instanceof WebDriverFacade){
driver = ((WebDriverFacade) driver).getProxiedDriver();
driver = ((WebDriverFacade) driver).getDriverInstance();
}
if (driver instanceof RemoteWebDriver) {
return ((RemoteWebDriver) driver).getSessionId();
Expand Down

0 comments on commit 4f1581c

Please sign in to comment.