Package org.openqa.selenium.chrome

Examples of org.openqa.selenium.chrome.ChromeDriver


        log.debug("Starting wiser on port " + smtpPort);
        wiser = new Wiser();
        wiser.setPort(smtpPort);
        wiser.start();

        setDriver(new ChromeDriver());
        getDriver().manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
        getDriver().manage().window().setSize(new Dimension(1024, 900));
    }
View Full Code Here


            // Tells chrome not to show warning
            // "You are using an unsupported command-line flag: --ignore-certifcate-errors".
            // #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 {
View Full Code Here

        "--start-maximized",
        "--lang=en",
        "--user-data-dir="
          + System.getProperty("wasavi.tests.chrome.profile_path")
      );
      driver = new ChromeDriver(service, options);
    }

    else if (name.equals("firefox")) {
      java.io.File profileDir = new java.io.File(
          System.getProperty("wasavi.tests.firefox.profile_path"));
View Full Code Here

    if (BrowserType.firefox.name().equals(driverName)) {
      driver = new FirefoxDriver();
    } else if (BrowserType.ie.name().equals(driverName)) {
      driver = new InternetExplorerDriver();
    } else if (BrowserType.chrome.name().equals(driverName)) {
      driver = new ChromeDriver();
    } else if (driverName.startsWith(BrowserType.remote.name())) {
      String[] params = driverName.split(":");
      Assert.isTrue(params.length == 4,
          "Remote driver is not right, accept format is \"remote:localhost:4444:firefox\", but the input is\""
              + driverName + "\"");
View Full Code Here

    }
    if (!StringUtil.isEmpty(System.getProperty(PROP_CHROME_BINARY))) {
      DesiredCapabilities capabilities = DesiredCapabilities.chrome();
      capabilities.setCapability("chrome.binary",
          System.getProperty(PROP_CHROME_BINARY));
      webDriver = new ChromeDriver(capabilities);
    } else {
      webDriver = new ChromeDriver();
    }
  }
View Full Code Here

    {
        String seleniumBrowser = System.getProperty( "selenium.browser" );

        if ( StringUtils.contains( seleniumBrowser, "chrome" ) )
        {
            return new ChromeDriver();
        }

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

    {
        String seleniumBrowser = System.getProperty( "selenium.browser" );

        if ( StringUtils.contains( seleniumBrowser, "chrome" ) )
        {
            return new ChromeDriver();
        }

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

     *
     * @see org.jboss.arquillian.drone.spi.Instantiator#createInstance(org.jboss.arquillian.drone.spi.DroneConfiguration)
     */
    @Override
    public ChromeDriver createInstance(TypedWebDriverConfiguration<ChromeDriverConfiguration> configuration) {
        ChromeDriver driver = super.createInstance(configuration);
        ChromeDriver proxy = GrapheneContext.getProxyForDriver(ChromeDriver.class);
        GrapheneContext.set(driver);
        return proxy;
    }
View Full Code Here

        return new RemoteWebDriver(new URL(url), dc);
      } catch (MalformedURLException e) {
        throw new RuntimeException(e);
      }
    } else if ("chrome".equals(browserType)) {
      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();
View Full Code Here

      if (startMaximized) {
        // Due do bug in ChromeDriver we need this workaround
        // http://stackoverflow.com/questions/3189430/how-do-i-maximize-the-browser-window-using-webdriver-selenium-2
        options.addArguments("chrome.switches", "--start-maximized");
      }
      return new ChromeDriver(options);
    } else if (ie()) {
      DesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer();
      ieCapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
      return maximize(new InternetExplorerDriver(ieCapabilities));
    } else if (htmlUnit()) {
View Full Code Here

TOP

Related Classes of org.openqa.selenium.chrome.ChromeDriver

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.