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

Firefox Selenium不受信任的SSL证书不起作用,firefox,testing,selenium,ssl,Firefox,Testing,Selenium,Ssl,这是网络上非常常见的问题,我尝试了很多解决方案,但都没有效果。我想用标准的selenium firefox浏览器运行测试 我已经做了: 运行selenium服务器时的trustAllSSLCertificates属性, 在桌面上生成firefox配置文件并将其发送到服务器,然后按属性将其导入selenium服务器 firefoxProfileTemplate根本不起作用 添加以下代码以测试配置 <var name="testing.selenium.capabilities" value=

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

我已经做了:

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

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

我使用的是最新版本的selenium server 2.42.2,我尝试的是旧版本的2.39。什么都没有发生:现在我不知道如何修复它。

您是否尝试过直接进入服务器上的配置文件并接受证书?您是否100%确定它使用了正确的配置文件?是的,我手动接受证书。然后,我将整个配置文件目录发送到服务器,并使用正确的路径运行它。这可能是一项工作: