UnreachableBrowserException trying to launch in Selenium Webdriver using IEDriver

前端 未结 7 1789
生来不讨喜
生来不讨喜 2021-01-15 09:30

I have a set of automations that work fantastically in Firefox and Chrome, and I\'d like to launch an instance of IEDriver as well.

I\'ve set up IEDriver as per Sel

7条回答
  •  说谎
    说谎 (楼主)
    2021-01-15 09:41

    I had the same issue. This fixed it for me:

    DesiredCapabilities capabilitiesIE = DesiredCapabilities.internetExplorer();
    capabilitiesIE.setCapability(
        InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
    WebDriver driver = new InternetExplorerDriver(capabilitiesIE);
    

提交回复
热议问题