org.openqa.selenium.NoSuchWindowException: Unable to get browser while trying to open Internet Explorer 11 through Selenium and IEDriverServer

后端 未结 2 403
情话喂你
情话喂你 2020-12-20 06:16

I\'m unable to launch Internet Explorer browser with the selenium webdriver. Facing the below error, can anyone please help

Error occured:

Started In         


        
相关标签:
2条回答
  • 2020-12-20 06:56

    This error message...

    Exception in thread "main" org.openqa.selenium.NoSuchWindowException: Unable to get browser
    

    ...implies that the IEDriverServer was unable to initiate/spawn a new WebBrowsing Session i.e. InternetExplorer Browser session.

    Your main issue is the incompatibility between the version of the binaries you are using as follows:

    • Your Selenium Client version is 3.141.59.
    • Your InternetExplorerDriver version 3.14.0.0.
    • Your JDK version is 1.8.0_60 which is pretty ancient.

    So there is a clear mismatch between the Selenium Client v3.141.59, InternetExplorerDriver v3.14.0.0 and JDK v8u60. As per best practices as Selenium Client and InternetExplorerDriver are released in sync and you must use both the binaries from the same release.


    Solution

    • Upgrade JDK to current levels JDK 8u212.
    • Upgrade IEDriverServer to current IEDriverServer v3.141.59 level.
    • Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.
    • Execute your @Test.
    0 讨论(0)
  • 2020-12-20 07:02

    Few points to check: 1. Check for security settings. Enable protected mode for all Options "Internet, Local Internet, Trusted Sites, Restricted sites" must not be selected. 2. Check for iedriverserver.exe(for IE 11 3.14) version compatibility.

    Thanks and regards, Sandeep Jaju

    0 讨论(0)
提交回复
热议问题