use of org.openqa.selenium.firefox.FirefoxOptions in project iTest by e-government-ua.
the class SetupAndTeardown method setDriver.
@Before
public void setDriver() {
Configuration.startMaximized = true;
// Configuration.browser = "chrome";
Configuration.timeout = 10000;
Configuration.collectionsTimeout = 10000;
FirefoxProfile profile = createFirefoxProfileWithExtensions();
WebDriver driver = new FirefoxDriver(new FirefoxOptions().setProfile(profile));
driver.manage().window().maximize();
WebDriverRunner.setWebDriver(driver);
}
Aggregations