• <bdo id='uKhNf'></bdo><ul id='uKhNf'></ul>

  • <legend id='uKhNf'><style id='uKhNf'><dir id='uKhNf'><q id='uKhNf'></q></dir></style></legend>
      1. <i id='uKhNf'><tr id='uKhNf'><dt id='uKhNf'><q id='uKhNf'><span id='uKhNf'><b id='uKhNf'><form id='uKhNf'><ins id='uKhNf'></ins><ul id='uKhNf'></ul><sub id='uKhNf'></sub></form><legend id='uKhNf'></legend><bdo id='uKhNf'><pre id='uKhNf'><center id='uKhNf'></center></pre></bdo></b><th id='uKhNf'></th></span></q></dt></tr></i><div id='uKhNf'><tfoot id='uKhNf'></tfoot><dl id='uKhNf'><fieldset id='uKhNf'></fieldset></dl></div>

        <tfoot id='uKhNf'></tfoot>
      2. <small id='uKhNf'></small><noframes id='uKhNf'>

        接受带有 marionette firefox webdrive python splinter 的 ssl 证书

        时间:2023-07-04

          <i id='cDaF3'><tr id='cDaF3'><dt id='cDaF3'><q id='cDaF3'><span id='cDaF3'><b id='cDaF3'><form id='cDaF3'><ins id='cDaF3'></ins><ul id='cDaF3'></ul><sub id='cDaF3'></sub></form><legend id='cDaF3'></legend><bdo id='cDaF3'><pre id='cDaF3'><center id='cDaF3'></center></pre></bdo></b><th id='cDaF3'></th></span></q></dt></tr></i><div id='cDaF3'><tfoot id='cDaF3'></tfoot><dl id='cDaF3'><fieldset id='cDaF3'></fieldset></dl></div>
            <bdo id='cDaF3'></bdo><ul id='cDaF3'></ul>

                <legend id='cDaF3'><style id='cDaF3'><dir id='cDaF3'><q id='cDaF3'></q></dir></style></legend>
              • <small id='cDaF3'></small><noframes id='cDaF3'>

                <tfoot id='cDaF3'></tfoot>

                    <tbody id='cDaF3'></tbody>
                  本文介绍了接受带有 marionette firefox webdrive python splinter 的 ssl 证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  当使用 python splinter firefox 47 marionette new webdriver 时,访问我想要的网站时出现证书错误,我尝试使用

                  when using python splinter firefox 47 marionette new webdriver, it gives certificate error when access the website i want, i tried to accept ssl certs with

                  browser = Browser('firefox', capabilities = {'marionette': True, 'acceptSslCerts': True})

                  browser = Browser('firefox', capabilities = {'marionette': True, 'acceptSslCerts': True})

                  或者使用trustAllSSLCertificates而不是acceptSslCerts,但仍然给我证书错误,是什么问题?

                  or using trustAllSSLCertificates instead of acceptSslCerts, but still gives me certificate error, what is the problem?

                  推荐答案

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

                  The Firefox bug is now resolved: https://github.com/mozilla/geckodriver/issues/93

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

                  For now, you need to install the latest Firefox Nightly build (52 or 53) if you want to use this feature right away: https://nightly.mozilla.org/

                  然后,下面的代码就可以工作了(Python selenium 只在这里,但我猜你可以在你的代码中用最新的:acceptInsecureCerts"替换acceptSslCerts")

                  Then, the following code will work (Python selenium only here, but my guess is that you can replace "acceptSslCerts" with the latest: "acceptInsecureCerts" in your code)

                  from selenium import webdriver
                  from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
                  from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
                  
                  caps = DesiredCapabilities.FIREFOX.copy()
                  caps['acceptInsecureCerts'] = True
                  ff_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-03-06 交付https://wiki.mozilla.org/RapidRelease/Calendar

                  edit: I am not sure how to pass the Nightly binary to Splinter though - https://github.com/cobrateam/splinter/pull/437 - hopefully the standard version of Firefox will be delivered on 2017-03-06 https://wiki.mozilla.org/RapidRelease/Calendar

                  这篇关于接受带有 marionette firefox webdrive python splinter 的 ssl 证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:发送密钥不起作用 selenium webdriver python 下一篇:Selenium在python中按类名查找元素

                  相关文章

                    <small id='HrIBn'></small><noframes id='HrIBn'>

                    1. <i id='HrIBn'><tr id='HrIBn'><dt id='HrIBn'><q id='HrIBn'><span id='HrIBn'><b id='HrIBn'><form id='HrIBn'><ins id='HrIBn'></ins><ul id='HrIBn'></ul><sub id='HrIBn'></sub></form><legend id='HrIBn'></legend><bdo id='HrIBn'><pre id='HrIBn'><center id='HrIBn'></center></pre></bdo></b><th id='HrIBn'></th></span></q></dt></tr></i><div id='HrIBn'><tfoot id='HrIBn'></tfoot><dl id='HrIBn'><fieldset id='HrIBn'></fieldset></dl></div>
                        <bdo id='HrIBn'></bdo><ul id='HrIBn'></ul>
                    2. <legend id='HrIBn'><style id='HrIBn'><dir id='HrIBn'><q id='HrIBn'></q></dir></style></legend>

                      <tfoot id='HrIBn'></tfoot>