对不起,我不能评论,但是我想帮助。当我使用集成在我的python脚本中的selenium webdriver时,我遇到了类似的问题。问题出在凭证上(特别是在声明新的webdriver对象时使用SSL协议)。我使用的代码看起来如下:
driver = webdriver.PhantomJS(executable_path = "/opt/local/bin/phantomjs", service_args=['--ignore-ssl-errors=true'])
正如你可以看到我使用一个密钥忽略SSL错误。这解决了我的问题,所以我不确定你用什么平台编写代码,但希望你能找到类似的对象调用。
我发现人们如何处理不受信任的证书here。特别是对于FireFox:
//It creates firefox profile
FirefoxProfile profile=new FirefoxProfile();
// This will set the true value
profile.setAcceptUntrustedCertificates(true);
// This will open firefox browser using above created profile
WebDriver driver=new FirefoxDriver();
driver.get("pass the url as per your requirement");
希望它可以帮助你!
最好。 -Petr。
您正在使用哪个webdriver版本? 2.48.2? – parishodak
是的,我使用2.48.2 –
尝试与较低的Firefox版本 – Paras