好的。我知道我问的是一个老生常谈的问题,但我发布这个问题是因为尽管尝试了各种链接上提供的所有解决方案,但我的问题仍未得到解决。
我的限制 - 我不想使用保存的 Firefox 配置文件来保存网站的证书。
Selenium 服务器版本 - 2.0b3
尝试过的解决方案 -
1) http://seleniumhq.org/docs/05_selenium_rc.html#handling-https-and-security-popups http://seleniumhq.org/docs/05_selenium_rc.html#handling-https-and-security-popups
浏览器启动器 *firefox
Selenium 从 trustAllSSLCertificates 选项开始。
没有帮助。 FF 再次要求保存证书。
2) http://blog.mogotest.com/2010/04/13/how-to-accept-self-signed-ssl-certificates-in-selenium/ http://blog.mogotest.com/2010/04/13/how-to-accept-self-signed-ssl-certificates-in-selenium/
浏览器启动器 *firefoxproxy
Selenium 从 trustAllSSLCertificates 选项开始。
没有帮助。
3) Selenium 测试 HTTPs 信任所有适用于 FF 但不适用于 IE 的证书 https://stackoverflow.com/questions/3575817/selenium-testing-https-trust-all-certificates-working-for-ff-but-not-ie
4)除此之外,我尝试创建自己的 cert_override.txt 并填充 5 个字段,如中所述https://developer.mozilla.org/En/Cert_override.txt https://developer.mozilla.org/En/Cert_override.txt但获取第 5 个字段的值(即证书的序列号和作为 Base64 编码字符串的颁发者名称)并不简单,如中所述http://tinyurl.com/ce4vn99 http://tinyurl.com/ce4vn99.
5) 使用 Firefox 的记住证书异常插件http://sejq.blogspot.in/2009/01/remember-certificate-exception.html http://sejq.blogspot.in/2009/01/remember-certificate-exception.html是另一种选择,但我无法对其进行完全静默安装。当我们将 xpi 文件放到所需目录中时,Firefox 下次启动时,它会提示是否找到该插件并继续安装。该插件不仅会反映在浏览器中。如果有人至少可以帮助我FULL静默安装这个,那就太好了!
我想要的只是这可以在 Firefox 中运行。我对 IE 和 Google Chrome 不感兴趣。
任何提供答案而不仅仅是将其称为重复的帮助将不胜感激。