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