對不起,我不能評論,但是我想幫助。當我使用集成在我的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