Search in sources :

Example 21 with FirefoxOptions

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);
}
Also used : WebDriver(org.openqa.selenium.WebDriver) FirefoxOptions(org.openqa.selenium.firefox.FirefoxOptions) FirefoxDriver(org.openqa.selenium.firefox.FirefoxDriver) FirefoxProfile(org.openqa.selenium.firefox.FirefoxProfile) Before(org.junit.Before)

Aggregations

FirefoxOptions (org.openqa.selenium.firefox.FirefoxOptions)21 FirefoxDriver (org.openqa.selenium.firefox.FirefoxDriver)17 WebDriver (org.openqa.selenium.WebDriver)9 FirefoxProfile (org.openqa.selenium.firefox.FirefoxProfile)7 ChromeOptions (org.openqa.selenium.chrome.ChromeOptions)6 RemoteWebDriver (org.openqa.selenium.remote.RemoteWebDriver)6 File (java.io.File)5 URL (java.net.URL)5 ChromeDriver (org.openqa.selenium.chrome.ChromeDriver)5 Before (org.junit.Before)4 Dimension (org.openqa.selenium.Dimension)3 FirefoxBinary (org.openqa.selenium.firefox.FirefoxBinary)3 InternetExplorerOptions (org.openqa.selenium.ie.InternetExplorerOptions)3 SafariDriver (org.openqa.selenium.safari.SafariDriver)3 IOException (java.io.IOException)2 TimeoutException (org.openqa.selenium.TimeoutException)2 EdgeDriver (org.openqa.selenium.edge.EdgeDriver)2 EdgeOptions (org.openqa.selenium.edge.EdgeOptions)2 InternetExplorerDriver (org.openqa.selenium.ie.InternetExplorerDriver)2 OperaDriver (org.openqa.selenium.opera.OperaDriver)2