Permalink
Browse files

Fix import for operaDriver

  • Loading branch information...
marinsky_r
marinsky_r committed May 10, 2017
1 parent 6576566 commit 28233d6a88c9758c453629de1710818f28af6b84
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/main/java/com/codeborne/selenide/webdriver/WebDriverFactory.java
@@ -150,6 +150,9 @@ private ChromeOptions transferChromeOptionsFromSystemProperties(ChromeOptions cu
if (capability.equals("args")) {
List<String> args = Arrays.asList(value.split(","));
currentChromeOptions.addArguments(args);
} else if(capability.equals("prefs")){
List<String> prefs = Arrays.asList(value.split(","));
currentChromeOptions.setExperimentalOption("prefs", prefs);
} else {
log.warning(capability + "is ignored." +
"Only so-called arguments (chromeoptions.args=<values comma separated>) " +
@@ -241,7 +244,7 @@ protected WebDriver createPhantomJsDriver(Proxy proxy) {
}
protected WebDriver createOperaDriver(Proxy proxy) {
return createInstanceOf("com.opera.core.systems.OperaDriver", proxy);
return createInstanceOf("org.openqa.selenium.opera.OperaDriver", proxy);
}
protected WebDriver createSafariDriver(Proxy proxy) {

0 comments on commit 28233d6

Please sign in to comment.