0
我在處理firefox中的「Untrusted Certificate」時遇到了一些問題。 我們不能使用FirefoxDriver(新的FirefoxProfile),因爲它已被棄用如何使用Selenium Web Driver在firefox中處理不受信任的證書?
我使用下面的代碼,但無法實現它。
FirefoxProfile profile=new FirefoxProfile();
profile.setAcceptUntrustedCertificates(true);
profile.setAssumeUntrustedCertificateIssuer(false);
FirefoxOptions options=new FirefoxOptions().setProfile(new FirefoxProfile());
WebDriver driver=new FirefoxDriver(options);
driver.get("Web Link");
任何人都可以給我建議的解決方案,硒達到3