<bdo id='SqI4D'></bdo><ul id='SqI4D'></ul>
    <legend id='SqI4D'><style id='SqI4D'><dir id='SqI4D'><q id='SqI4D'></q></dir></style></legend>
    1. <small id='SqI4D'></small><noframes id='SqI4D'>

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

      2. Chrome 59 是否支持 URL 中的基本身份验证凭据,以便与 Chromedriver 一起使用?

        Chrome 59 support for basic auth credentials in URLs alternative for usage with Chromedriver?(Chrome 59 是否支持 URL 中的基本身份验证凭据,以便与 Chromedriver 一起使用?)
          <bdo id='3N651'></bdo><ul id='3N651'></ul>
          <legend id='3N651'><style id='3N651'><dir id='3N651'><q id='3N651'></q></dir></style></legend>

          <small id='3N651'></small><noframes id='3N651'>

            <tbody id='3N651'></tbody>

              <tfoot id='3N651'></tfoot>
                <i id='3N651'><tr id='3N651'><dt id='3N651'><q id='3N651'><span id='3N651'><b id='3N651'><form id='3N651'><ins id='3N651'></ins><ul id='3N651'></ul><sub id='3N651'></sub></form><legend id='3N651'></legend><bdo id='3N651'><pre id='3N651'><center id='3N651'></center></pre></bdo></b><th id='3N651'></th></span></q></dt></tr></i><div id='3N651'><tfoot id='3N651'></tfoot><dl id='3N651'><fieldset id='3N651'></fieldset></dl></div>
                • 本文介绍了Chrome 59 是否支持 URL 中的基本身份验证凭据,以便与 Chromedriver 一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 Chrome 59 中,对将基本身份验证凭据放入 URL 的支持 - 例如 https://foo:bar@www.foo.com 已经结束 - 不久前在 https://www.chromestatus.com/feature/5669008342777856.

                  With Chrome 59 the support for putting basic auth credentials in URLs - like https://foo:bar@www.foo.com has ended - this was warned a while ago within https://www.chromestatus.com/feature/5669008342777856.

                  有没有人不得不使用 Selenium 和 Chromedriver 解决这个问题?特别是在 Python 中?

                  Has anyone had to work around this with Selenium and Chromedriver yet? Specifically within Python?

                  推荐答案

                  在我们的情况下(通过 C# 和 NTLM auth 使用 WebDriver 进行自动测试),我们发现一旦您使用凭据点击页面,尽管您无法加载子-您仍然有权访问该浏览器会话的页面上的资源.

                  In our situation (automated testing using WebDriver via C# with NTLM auth) we found that once you hit the page with the credentials although you can't load the sub-resources on the page you are still authorized for that browser session.

                  因此,我们使用有效凭据转到我们不想测试的页面(在我们的例子中是主页),以便在我们的测试套件开始时获得授权.从那时起,我们无需任何凭据即可浏览到要测试的页面,只要我们不关闭会话,一切正常.

                  So we go to a page that we don't want to test (in our case the home page) with valid credentials in order to get authorized at the start of our test suite. From then on we browse to the pages we want to test without any credentials and so long as we don't close the session everything works.

                  这篇关于Chrome 59 是否支持 URL 中的基本身份验证凭据,以便与 Chromedriver 一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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% 就足够了)

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

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

                          <tbody id='zZgav'></tbody>
                        • <small id='zZgav'></small><noframes id='zZgav'>

                          <tfoot id='zZgav'></tfoot>