• <tfoot id='VNOGj'></tfoot>

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

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

        <legend id='VNOGj'><style id='VNOGj'><dir id='VNOGj'><q id='VNOGj'></q></dir></style></legend>

        如何绕过消息-“您的连接不是私密的"在使用 Selenium 的非安全页面上?

        How to bypass the message-quot;your connection is not privatequot; on non-secure page using Selenium?(如何绕过消息-“您的连接不是私密的在使用 Selenium 的非安全页面上?)
      1. <small id='2T3Sn'></small><noframes id='2T3Sn'>

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

          <bdo id='2T3Sn'></bdo><ul id='2T3Sn'></ul>

            1. <tfoot id='2T3Sn'></tfoot>

                  本文介绍了如何绕过消息-“您的连接不是私密的"在使用 Selenium 的非安全页面上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试与您的连接不是私密的"页面进行交互.

                  I'm trying to interact with the page "Your connection is not private".

                  使用 options.add_argument('--ignore-certificate-errors') 的解决方案没有帮助,原因有两个:

                  The solution of using options.add_argument('--ignore-certificate-errors') is not helpful for two reasons:

                  1. 我正在使用一个已经打开的窗口.
                  2. 即使我使用的是硒打开的窗口";脚本不停地运行,我要解决的问题是当我的浏览器与 splunk 仪表板断开连接并且我希望它再次自动连接时(它会弹出私人连接窗口).

                  如何点击高级"?然后点击Proceed to splunk_server (unsafe)?

                  How do I click on "Advanced" and then click on "Proceed to splunk_server (unsafe)?

                  推荐答案

                  对于 chrome:

                  from selenium import webdriver
                  
                  options = webdriver.ChromeOptions()
                  options.add_argument('--ignore-ssl-errors=yes')
                  options.add_argument('--ignore-certificate-errors')
                  driver = webdriver.Chrome(options=options)
                  

                  如果不行,那么这个:

                  from selenium import webdriver
                  from selenium.webdriver import DesiredCapabilities
                  
                  options = webdriver.ChromeOptions()
                  options.add_argument('--allow-insecure-localhost') # differ on driver version. can ignore. 
                  caps = options.to_capabilities()
                  caps["acceptInsecureCerts"] = True
                  driver = webdriver.Chrome(desired_capabilities=caps)
                  

                  对于火狐:

                  from selenium import webdriver
                  
                  profile = webdriver.FirefoxProfile()
                  profile.accept_untrusted_certs = True
                  
                  driver = webdriver.Firefox(firefox_profile=profile)
                  driver.get('https://cacert.org/')
                  
                  driver.close()
                  

                  如果不行,那么这个:

                  capabilities = webdriver.DesiredCapabilities().FIREFOX
                  capabilities['acceptSslCerts'] = True
                  driver = webdriver.Firefox(capabilities=capabilities)
                  driver.get('https://cacert.org/')
                  driver.close()
                  

                  最重要的是为我工作!

                  这篇关于如何绕过消息-“您的连接不是私密的"在使用 Selenium 的非安全页面上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Running .jl file from R or Python(从 R 或 Python 运行 .jl 文件)
                  Running Julia .jl file in python(在 python 中运行 Julia .jl 文件)
                  Using PIP in a Azure WebApp(在 Azure WebApp 中使用 PIP)
                  How to run python3.7 based flask web api on azure(如何在 azure 上运行基于 python3.7 的烧瓶 web api)
                  Azure Python Web App Internal Server Error(Azure Python Web 应用程序内部服务器错误)
                  Run python dlib library on azure app service(在 azure app 服务上运行 python dlib 库)
                  • <bdo id='Iziqw'></bdo><ul id='Iziqw'></ul>

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

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

                        2. <tfoot id='Iziqw'></tfoot>
                              <tbody id='Iziqw'></tbody>