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