使用marionette firefox webdrive python splinter接受ssl cert

使用marionette firefox webdrive python splinter接受ssl cert,第1张

使用marionette firefox webdrive python splinter接受ssl cert

Firefox错误现已解决:https :
//github.com/mozilla/geckodriver/issues/93

目前,如果您想立即使用此功能,则需要安装最新的Firefox
Nightly内部版本(52或53):https :
//nightly.mozilla.org/

然后,以下代码将起作用(仅在此处使用Python硒,但我的猜测是,您可以将“ acceptSslCerts”替换为最新的代码:“
acceptInsecureCerts”)

from selenium import webdriverfrom selenium.webdriver.common.desired_capabilities import DesiredCapabilitiesfrom selenium.webdriver.firefox.firefox_binary import FirefoxBinarycaps = DesiredCapabilities.FIREFOX.copy()caps['acceptInsecureCerts'] = Trueff_binary = FirefoxBinary("path to the Nightly binary")driver = webdriver.Firefox(firefox_binary=ff_binary, capabilities=caps)driver.get("https://expired.badssl.com")

编辑:我不确定如何将Nightly二进制文件传递给Splinter-
https://github.com/cobrateam/splinter/pull/437-希望Firefox的标准版本将于2017年3月6日交付
https:/
/wiki.mozilla.org/RapidRelease/日历



欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5169747.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-11-18
下一篇2022-11-18

发表评论

登录后才能评论

评论列表(0条)

    保存