试过 - 得到这个错误OpenQA.Selenium.WebDriverException: No response from server for url
driver.Navigate().GoToUrl("javascript:document.getElementById('overridelink').click()");
结束编辑
需要测试的网站有自签名证书。所以 Internet Explorer(Windows 7 中的 8)显示了以下消息消息以及应该如何处理任何线索?
The security certificate presented by this website was not issued by a trusted certificate authority. The security certificate presented by this website was issued for a different website's address.
如果通过单击覆盖链接"Continue to this website (no recommended)"
然后它重定向页面,我得到这个窗口,上面写着:
Do you want to view only the webpage content that was delivered securely? - with YES | NO button
以及无论您单击是/否,我都会收到错误消息:
Unable to open the Internet site <site_name> Operation aborted
有什么帮助吗?