Reputation: 44325
I am trying to use the python-selenium API (version 2.53.6) to perform GUI tests on different browsers. When I try to use IE (11.0.10240) in the following way (Windows Server 2012 R2 Standard, 64bit); using authentication:
driver = webdriver.Ie()
driver.get("http://user:[email protected]")
then I get the following error message:
selenium.common.exceptions.WebDriverException: Message: Failed to navigate to http://user:[email protected]. This usually means that a call to the COM method IWebBrowser2::Navigate2() failed.
Is there a way to fix this error?
Addendum:
Upvotes: 11
Views: 981
Reputation: 190
Have you tried using it this way ?
driver.current_url("http://user:[email protected]")
Upvotes: 0
Reputation: 473873
Not directly answering the question, but I could not reproduce it when using IE11 on Windows 10 through BrowserStack and opening this http auth protected page:
from selenium import webdriver
desired_cap = {'os': 'Windows', 'os_version': '10', 'browser': 'IE', 'browser_version': '11.0'}
driver = webdriver.Remote(
command_executor='http://usename:[email protected]:80/wd/hub',
desired_capabilities=desired_cap)
driver.get("http://httpwatch:[email protected]/httpgallery/authentication/authenticatedimage/default.aspx?0.7349707232788205")
No errors and I see the image that is behind the HTTP auth.
Using selenium 2.53.5.
Upvotes: 1