Cannot find any elements using Internet Explorer 11 and Selenium (any version) and IEWebDriver (any version)

后端 未结 1 1116
挽巷
挽巷 2021-02-19 11:08

I\'ve searched all over for an answer and I can\'t find any fix to my issue. I am trying to run my Selenium tests in IE11. All other browsers work fine (including Edge). A simpl

相关标签:
1条回答
  • 2021-02-19 11:41

    Earlier, I was using IE11 with Selenium WebDriver 2.5.3 and IEDriver -2.53.0. I got the same issue. I changed the capabilities by setting some properties for IE programmatically and it worked. Here's the code snippet:

        DesiredCapabilities caps = DesiredCapabilities.internetExplorer();
        caps.setCapability(InternetExplorerDriver.INITIAL_BROWSER_URL, Configuration.getConfig("My URL"));
        caps.setCapability(InternetExplorerDriver.IGNORE_ZOOM_SETTING, true);
    
    0 讨论(0)
提交回复
热议问题