Firefox中使用Selenium webdriver的不安全连接错误

时间:2018-02-28 13:17:58

标签: selenium-webdriver

FF:52.6 ESR版本 硒:3.5.2 壁虎司机:v0.15

FirefoxProfile profile = new FirefoxProfile();
System.setProperty("webdriver.gecko.driver", "D:/geckodrivers/geckodriver-v0.15.0-win64/geckodriver.exe");       
profile.setAcceptUntrustedCertificates(true);
profile.setAssumeUntrustedCertificateIssuer(true);
driver = new FirefoxDriver(profile);

我正在使用此代码,但仍然会出现不安全的连接错误。如果我使用功能,则网址本身不会在FF浏览器中打开。问题不能在Chrome和IE中复制。

0 个答案:

没有答案
相关问题