Skip to content

Commit

Permalink
Continue using webdriver manager until selenium-manager is in beta state
Browse files Browse the repository at this point in the history
  • Loading branch information
cjayswal committed Jul 11, 2023
1 parent a959bf1 commit 4792e57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ivy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ SOFTWARE.
<dependency org="org.apache.commons" name="commons-jexl3" rev="3.2.1" conf="compile->default"/>

<!-- https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager
<dependency org="org.slf4j" name="slf4j-log4j12" rev="1.7.30" conf="compile->default"/>
<dependency org="io.github.bonigarcia" name="webdrivermanager" rev="4.4.3" conf="compile->default"/> -->
<dependency org="org.slf4j" name="slf4j-log4j12" rev="1.7.30" conf="compile->default"/> -->
<dependency org="io.github.bonigarcia" name="webdrivermanager" rev="4.4.3" conf="compile->default"/>

<!-- repo-editor -->
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents.core5/httpcore5 -->
Expand Down
8 changes: 4 additions & 4 deletions src/com/qmetry/qaf/automation/ui/UiDriverFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
import com.qmetry.qaf.automation.ui.webdriver.QAFWebDriverCommandListener;
import com.qmetry.qaf.automation.util.StringUtil;

//import io.github.bonigarcia.wdm.WebDriverManager;
import io.github.bonigarcia.wdm.WebDriverManager;

/**
* com.qmetry.qaf.automation.ui.UiDriverFactory.java
Expand Down Expand Up @@ -418,7 +418,7 @@ private QAFExtendedWebDriver getDriver(WebDriverCommandLogger reporter, String u
return new QAFExtendedWebDriver(ChromeDriverHelper.getService().getUrl(), desiredCapabilities,
reporter);
}*/
//setUpDriverExecutable(driverCls);
setUpDriverExecutable(driverCls);
WebDriver driver = getDriverObj(driverCls, desiredCapabilities, urlstr);// driverCls.newInstance();
return new QAFExtendedWebDriver(driver, reporter);
} catch (Throwable e) {
Expand All @@ -429,7 +429,7 @@ private QAFExtendedWebDriver getDriver(WebDriverCommandLogger reporter, String u
}
}

/*private static void setUpDriverExecutable(Class<? extends WebDriver> driverClass) {
private static void setUpDriverExecutable(Class<? extends WebDriver> driverClass) {
try {
if (ConfigurationManager.getBundle().getBoolean("manage.driver.executable", true)) {
logger.info(
Expand All @@ -444,7 +444,7 @@ private QAFExtendedWebDriver getDriver(WebDriverCommandLogger reporter, String u
"Unable to setup driver executable: "+e.getMessage());

}
}*/
}

private QAFExtendedWebDriver getDriver(String url, WebDriverCommandLogger reporter) {
Capabilities desiredCapabilities = getDesiredCapabilities();
Expand Down

0 comments on commit 4792e57

Please sign in to comment.