gpt4 book ai didi

webdriver - 使用 WebDriver 处理 UntrustedSSLcertificates

转载 作者:行者123 更新时间:2023-12-03 17:58:58 26 4
gpt4 key购买 nike

我在 Java 中使用 Web 驱动程序处理 UntrustedSSLcertificates 时陷入困境。

我创建了 Firefox 配置文件,如:

FirefoxProfile profile = new FirefoxProfile();
profile.setAcceptUntrustedCertificates(true);
profile.setAssumeUntrustedCertificateIssuer(false);

我创建了 Firefox 配置文件,添加了覆盖的证书。

这不是处理 SSL 证书。

有没有其他方法来处理 UntrustedSSL 证书?

最佳答案

//带有 URL www.google.com 的 Firefox 示例

FirefoxProfile profile=new FirefoxProfile();

profile.setAssumeUntrustedCertificateIssuer(false);

driver=new FireforDriver(profile);

driver.get("https://google.com");

关于webdriver - 使用 WebDriver 处理 UntrustedSSLcertificates,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5933871/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com