• <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 证书

        accept ssl cert with marionette firefox webdrive python splinter(接受带有 marionette firefox webdrive python splinter 的 ssl 证书)

          <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 证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  env: python: No such file or directory(env: python: 没有这样的文件或目录)
                  How to evaluate environment variables into a string in Python?(如何在 Python 中将环境变量评估为字符串?)
                  Python - temporarily modify the current process#39;s environment(Python - 临时修改当前进程的环境)
                  Change current process environment#39;s LD_LIBRARY_PATH(更改当前进程环境的 LD_LIBRARY_PATH)
                  Reading and writing environment variables in Python?(在 Python 中读写环境变量?)
                  When to use sys.path.append and when modifying %PYTHONPATH% is enough(何时使用 sys.path.append 以及何时修改 %PYTHONPATH% 就足够了)

                      <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>
                            <tbody id='HrIBn'></tbody>
                          • <legend id='HrIBn'><style id='HrIBn'><dir id='HrIBn'><q id='HrIBn'></q></dir></style></legend>

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