尝试过 - 出现此错误 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
有什么帮助吗?
最佳答案
对于 IE,您应该首先在本地计算机上手动安装证书,然后使用它。 AFAIK 没有其他方法可以解决这个问题。
关于Selenium - 网站的安全证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13575187/