Skip to content

Commit

Permalink
Fix import for operaDriver
Browse files Browse the repository at this point in the history
  • Loading branch information
marinsky_r committed May 10, 2017
1 parent 6576566 commit 28233d6
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -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>) " +
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 28233d6

Please sign in to comment.