Chrome 59 support for basic auth credentials in URLs alternative for usage with Chromedriver?

后端 未结 1 1414
灰色年华
灰色年华 2021-01-06 17:17

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://

相关标签:
1条回答
  • 2021-01-06 18:18

    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.

    0 讨论(0)
提交回复
热议问题