In IE: org.openqa.selenium.WebDriverException: This usually means that a call to the COM method IWebBrowser2::Navigate2() failed In IE: org.openqa.selenium.WebDriverException: This usually means that a call to the COM method IWebBrowser2::Navigate2() failed selenium selenium

In IE: org.openqa.selenium.WebDriverException: This usually means that a call to the COM method IWebBrowser2::Navigate2() failed


I've just encountered that problem myself. For me, the problem was that my application uses HTTP Basic Authentication, and that I was attempting to set the username/password combination via the page URL, like this: http://username:password@host/path

Problem is by default IE doesn't allow you to set the username and password this way (it's a security feature), and that causes the error above.

To fix this, I had to add a registry value in regedit. In the key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE add a new DWORD value with the name iexplore.exe and the value 0, as described in this other answer https://stackoverflow.com/a/23519791/80779


You must set the Protected Mode settings for each zone to be the same value in the Internet Explorer. Hope the below link may be helpful to you.

NoSuchElementException is occurred during implementation of InternetExplorerDriver in Selenium WebDriver

Regards,

Vignesh


I resolved this issue by manually running internet explorer. When the browser loaded, I was prompted with a dialog to 'Set up Internet Explorer 11'. I selected 'Use recommended security, privacy, and compatibility settings' and clicked 'OK'.

After the dialog closed, my browser displayed a configuration page called 'Caution: Internet Explorer Enhanced Security Configuration is not enabled' - I ignored this and closed the browser and tried running the automation test again with success.