Selenium - 网站的安全证书

标签 selenium internet-explorer-8 ssl-certificate selenium-webdriver

尝试过 - 出现此错误 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.

enter image description here

如果通过单击 "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/

相关文章:

python - Django 测试 - 启动多个可以通信的测试服务器?

java - Junit 中的远程 PhantomJS 驱动程序

javascript - 在 IE 8 中渲染 <table> 时如何提高性能?

css - 删除所有 ExtJs CSS 覆盖

ssl - youtube-v3-api 安全证书更新

c# - 使用 Selenium 2 查找嵌套 iFrame

java - 为 Selenium 测试设置 Jenkins Windows 从屏幕分辨率

IE8 中的 Javascript 错误 : Not implemented

asp.net-core - 在 VSCode 中运行 ASP.NET Core Web 应用程序时如何修复 HTTPS 证书错误

node.js - 使用 IAM 存储证书以便在 NodeJs 服务器中使用它们