Selenium不受信任的SSL证书不起作用

时间:2014-06-12 08:36:37

标签: firefox testing selenium ssl

这是网络上非常常见的问题,我尝试了很多解决方案,但没有任何效果。我想用标准的selenium firefox浏览器运行测试。

我已经做过的事情:

    运行selenium server时
  • trustAllSSLCertificates 属性,
  • 在桌面上生成firefox配置文件并将其发送到服务器,而不是按属性
    将其导入selenium服务器 firefoxProfileTemplate 根本不起作用
  • 添加以下代码以测试配置

    <var name="testing.selenium.capabilities" value='{"acceptSslCerts" :true, "trustAllSSLCertificates" : true,"webdriver_accept_untrusted_certs":true, "setAcceptUntrustedCertificates":true,"acceptUntrustedCertificates":true}'/>
    

我使用最新版本的selenium服务器(2.42.2),我尝试使用旧版本(2.39)没有任何反应:(这一刻我不知道如何解决它。

0 个答案:

没有答案