Package org.openqa.selenium.ie

Examples of org.openqa.selenium.ie.InternetExplorerDriver$InternetExplorerOptions


    WebDriver driver = null;

    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,
View Full Code Here


      // TODO check the bitness of the OS and move this to test.properties
      String driverPath = userDir
          + "/../../../tools/com.ibm.sbtx.ci/selenium/iew32/IEDriverServer.exe";
      System.setProperty(PROP_WEBDRIVER_IE_DRIVER, driverPath);
    }
    webDriver = new InternetExplorerDriver() {
      @Override
      public void get(String url) {
        super.get(url);
        // FIX for self signed certificates
        String t = super.getCurrentUrl();
View Full Code Here

            return new SafariDriver();
        }

        if ( StringUtils.contains( seleniumBrowser, "iexplore" ) )
        {
            return new InternetExplorerDriver();
        }
       
        return new FirefoxDriver();

    }
View Full Code Here

            return new SafariDriver();
        }

        if ( StringUtils.contains( seleniumBrowser, "iexplore" ) )
        {
            return new InternetExplorerDriver();
        }

        return new FirefoxDriver();

    }
View Full Code Here

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

      }
      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()) {
      DesiredCapabilities desiredCapabilities = DesiredCapabilities.htmlUnit();
      desiredCapabilities.setCapability(HtmlUnitDriver.INVALIDSELECTIONERROR, true);
      desiredCapabilities.setCapability(HtmlUnitDriver.INVALIDXPATHERROR, false);
      desiredCapabilities.setJavascriptEnabled(true);
View Full Code Here

    switch (configuration.getBrowserConfig().getBrowsertype()) {
      case FIREFOX:
        browser = newFireFoxBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent);
        break;
      case INTERNET_EXPLORER:
        browser = WebDriverBackedEmbeddedBrowser.withDriver(new InternetExplorerDriver(),
                filterAttributes, crawlWaitEvent, crawlWaitReload);
        break;
      case CHROME:
        browser = newChromeBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent);
        break;
View Full Code Here

      options.addArguments("chrome.switches", chromeSwitches);
      return new ChromeDriver(options);
    } else if (ie()) {
      DesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer();
      ieCapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
      return new InternetExplorerDriver(ieCapabilities);
    } else if (htmlUnit()) {
      DesiredCapabilities desiredCapabilities = DesiredCapabilities.htmlUnit();
      desiredCapabilities.setCapability(HtmlUnitDriver.INVALIDSELECTIONERROR, true);
      desiredCapabilities.setCapability(HtmlUnitDriver.INVALIDXPATHERROR, false);
      desiredCapabilities.setJavascriptEnabled(true);
View Full Code Here

      driverURL = contextClassLoader.getResource("archive/IEDriverServer.exe");
      if (driverURL == null) {
        throw new NullPointerException("Cannot find IEDriverServer instance, copy IEDriverServer.exe from driver to /src/archive/");
      }
      System.setProperty("webdriver.ie.driver", new File(driverURL.toURI()).getAbsolutePath());
      return new InternetExplorerDriver();
    case CHROME:
      driverURL = contextClassLoader.getResource("archive/chromedriver.exe");
      if (driverURL == null) {
        throw new NullPointerException("Cannot find chromedriver instance, copy chromedriver.exe from driver to /src/archive/");
      }
View Full Code Here

    }
    return new HtmlUnitDriver(capabilities);
  }

  protected WebDriver createInternetExplorerDriver() {
    return new InternetExplorerDriver();
  }
View Full Code Here

TOP

Related Classes of org.openqa.selenium.ie.InternetExplorerDriver$InternetExplorerOptions

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.