Package org.openqa.selenium.safari

Examples of org.openqa.selenium.safari.SafariDriver


            // #14319
            ChromeOptions options = new ChromeOptions();
            options.addArguments("--test-type ");
            driver = new ChromeDriver(options);
        } else if (BrowserUtil.isSafari(desiredCapabilities)) {
            driver = new SafariDriver();
        } else if (BrowserUtil.isPhantomJS(desiredCapabilities)) {
            driver = new PhantomJSDriver();
        } else {
            throw new RuntimeException(
                    "Not implemented support for running locally on "
View Full Code Here


        if ("ie".equals(browserName)) {
          initInternetExplorerDriver();
        } else if ("chrome".equals(browserName)) {
          initChromeDriver();
        } else if ("safari".equals(browserName)) {
          webDriver = new SafariDriver();
        } else if ("headless".equals(browserName)) {
          HtmlUnitDriver driver = new HtmlUnitDriver(true);
          webDriver = driver;
        } else {
          webDriver = new FirefoxDriver();
View Full Code Here

            return new ChromeDriver();
        }

        if ( StringUtils.contains( seleniumBrowser, "safari" ) )
        {
            return new SafariDriver();
        }

        if ( StringUtils.contains( seleniumBrowser, "iexplore" ) )
        {
            return new InternetExplorerDriver();
View Full Code Here

            return new ChromeDriver();
        }

        if ( StringUtils.contains( seleniumBrowser, "safari" ) )
        {
            return new SafariDriver();
        }

        if ( StringUtils.contains( seleniumBrowser, "iexplore" ) )
        {
            return new InternetExplorerDriver();
View Full Code Here

      return new ChromeDriver(dc);
    } else if ("firefox".equals(browserType)) {
      return new FirefoxDriver();
    } else if ("safari".equals(browserType)) {
      // TODO(felix8a): local safari doesn't work yet
      return new SafariDriver();
    } else {
      throw new RuntimeException("No local driver for browser type '"
          + browserType + "'");
    }
  }
View Full Code Here

            return new ChromeDriver();
        }

        if ( StringUtils.contains( seleniumBrowser, "safari" ) )
        {
            return new SafariDriver();
        }

        if ( StringUtils.contains( seleniumBrowser, "iexplore" ) )
        {
            return new InternetExplorerDriver();
View Full Code Here

    @Override
    public WebDriver newInstance(DriverOptions driverOptions) {
        DesiredCapabilities caps = setupProxy(DesiredCapabilities.safari(), driverOptions);
        caps.merge(driverOptions.getCapabilities());
        SafariDriver driver = new SafariDriver(caps);
        setInitialWindowSize(driver, driverOptions);
        return driver;
    }
View Full Code Here

    } else if ("iexplore".equalsIgnoreCase(browser)) {
      driver = new InternetExplorerDriver();
    } else if ("chrome".equalsIgnoreCase(browser)) {
      driver = new ChromeDriver();
    } else if ("safari".equalsIgnoreCase(browser)) {
      driver = new SafariDriver();
    } else if ("htmlUnit".equalsIgnoreCase(browser)) {
      driver = new HtmlUnitDriver();
    } else if ("htmlUnit+js".equalsIgnoreCase(browser)) {
      driver = new HtmlUnitDriver(true);
    } else if ("opera".equalsIgnoreCase(browser)) {
View Full Code Here

    public WebDriver newChromeDriver(Capabilities capabilities) {
        return new ChromeDriver(capabilities);
    }

    public WebDriver newSafariDriver(Capabilities capabilities) {
        return new SafariDriver(capabilities);
    }
View Full Code Here

        if ("chrome".equals(seleniumBrowser)) {
            return new ChromeDriver();
        }

        if ("safari".equals(seleniumBrowser)) {
            return new SafariDriver();
        }

        FirefoxProfile profile = new FirefoxProfile();
        profile.setPreference("focusmanager.testmode", true);
        return new FirefoxDriver(profile);
View Full Code Here

TOP

Related Classes of org.openqa.selenium.safari.SafariDriver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.