我正在嘗試使用python-selenium API(版本2.53.6)在不同的瀏覽器上執行GUI測試。當我嘗試按以下方式使用IE(11.0.10240)時(Windows Server 2012 R2 Standard,64位);使用認證:如何使用從硒的IE瀏覽器的python的webdriver(導航錯誤失敗)?
driver = webdriver.Ie()
driver.get("http://user:[email protected]")
然後我收到以下錯誤信息:
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.
有沒有辦法解決這個問題?
附錄:
如果您嘗試導航到某個其他網站,它是否工作?它可能與使用http ...有關。另外,當你說你已經設置「啓用保護模式」,你的意思是你禁用它,對嗎?另外,嘗試使用Internet選項>高級下的安全部分 –