Which is the compatible version of IEDriverServer

2019-08-18 04:35发布

I am automating tests with IE11 and Selenium 3.13 and I was testing different version of IEDriverServer but every version has a bug. I want a stable version to combine IEDriverServer with IE11 and Selenium 3.13

I'm using this code to launch the application:

private static WebDriver setRemoteDriver(Map<String, Object> selConfig) {
    String browser = System.getProperty("browser", selConfig.get("browser").toString());
    capabilities = new DesiredCapabilities();
    capabilities.setJavascriptEnabled(true);
    if (browser.equalsIgnoreCase("firefox")) {
        capabilities = DesiredCapabilities.firefox();
        capabilities.setCapability(FirefoxDriver.PROFILE, getFirefoxProfile());
        capabilities.setCapability("pageLoadStrategy", "normal");
    } else if (browser.equalsIgnoreCase("chrome")) {
        capabilities = DesiredCapabilities.chrome();
    } else if (browser.equalsIgnoreCase("Safari")) {
        capabilities = DesiredCapabilities.safari();
    } else if ((browser.equalsIgnoreCase("ie")) || (browser.equalsIgnoreCase("internetexplorer"))
            || (browser.equalsIgnoreCase("internet explorer"))) {
        capabilities = DesiredCapabilities.internetExplorer();
    } else {
        System.out.println("Please correct Browser specify in YAML file : " + browser);
        capabilities = DesiredCapabilities.firefox();
    }
    try {
        url = new URL(System.getProperty("ipaddress", getYamlValue("selenium.remote.host")));
    } catch (MalformedURLException e) {
        e.printStackTrace();
    }
    return new RemoteWebDriver(url, capabilities);
}

1条回答
forever°为你锁心
2楼-- · 2019-08-18 05:09

IEDriverServer for IE11 and Selenium should always be identical. As per best practices you should always use the recent GA version while some organizations tends to prefer the major GA releases only.

As an example:

  • For Selenium v3.14.0 you should always use IEDriverServer v3.14.0

selenium_3_14_0


  • In some exceptional cases there may be minor Selenium releases where you need to use the IEDriverServer from the major release. As an example:
    • For Selenium v3.141.0, Selenium v3.141.5 and Selenium v3.141.59 you should always use IEDriverServer v3.141.0 only.

selenium_3_141_0


This Usecase

For Selenium v3.13.0 you should always use IEDriverServer v3.13.0

selenium_3_13_0

查看更多
登录 后发表回答