我发现有关在Selenium for
Java中启用此功能的评论。还有一个关于同一问题的StackOverflow问题,对于Java For
Python,这也是我想要的目标语言,我通过浏览
FirefoxProfile代码提出了这个问题:
profile = webdriver.FirefoxProfile()profile.accept_untrusted_certs = True
据我测试,这产生了预期的行为。
希望这对某人有帮助!

我发现有关在Selenium for
Java中启用此功能的评论。还有一个关于同一问题的StackOverflow问题,对于Java For
Python,这也是我想要的目标语言,我通过浏览
FirefoxProfile代码提出了这个问题:
profile = webdriver.FirefoxProfile()profile.accept_untrusted_certs = True
据我测试,这产生了预期的行为。
希望这对某人有帮助!