use of org.openqa.selenium.opera.OperaOptions in project webdrivermanager by bonigarcia.
the class OperaTest method setupTest.
@Before
public void setupTest() {
File operaBinary = IS_OS_WINDOWS ? new File("C:\\Program Files\\Opera\\launcher.exe") : new File("/usr/bin/opera");
assumeTrue(operaBinary.exists());
OperaOptions options = new OperaOptions();
options.setBinary(operaBinary);
driver = new OperaDriver(options);
}
use of org.openqa.selenium.opera.OperaOptions in project nutch by apache.
the class HttpWebClient method createOperaWebDriver.
public static WebDriver createOperaWebDriver(String operaDriverPath, boolean enableHeadlessMode) {
// if not specified, WebDriver will search your path for operadriver
System.setProperty("webdriver.opera.driver", operaDriverPath);
OperaOptions operaOptions = new OperaOptions();
// operaOptions.setBinary("/usr/bin/opera");
operaOptions.addArguments("--no-sandbox");
operaOptions.addArguments("--disable-extensions");
// to your server
if (enableHeadlessMode) {
operaOptions.addArguments("--headless");
}
WebDriver driver = new OperaDriver(operaOptions);
return driver;
}
use of org.openqa.selenium.opera.OperaOptions in project ifml2php by Dipiert.
the class Form_test method loadOperaDriver.
private void loadOperaDriver() {
System.setProperty("webdriver.opera.driver", "drivers/operadriver");
OperaOptions operaOptions = new OperaOptions();
operaOptions.addArguments("--no-sandbox");
drivers.add(new OperaDriver(operaOptions));
}
use of org.openqa.selenium.opera.OperaOptions in project ifml2php by Dipiert.
the class Page_test method loadOperaDriver.
private static void loadOperaDriver() {
System.setProperty("webdriver.opera.driver", "drivers/operadriver");
OperaOptions operaOptions = new OperaOptions();
operaOptions.addArguments("--no-sandbox");
drivers.add(new OperaDriver(operaOptions));
}
Aggregations