【问题标题】:How to handle Windows Authentication with Selenium Webdriver and Internet Explorer 10?如何使用 Selenium Webdriver 和 Internet Explorer 10 处理 Windows 身份验证?
【发布时间】:2014-05-09 20:49:41
【问题描述】:

在使用 InternetExplorer 驱动程序使用 Selenium Webdriver 创建自动化测试 (C#) 时,我遇到了通过 Windows 身份验证的问题。

(使用 Firefox 时,它可以访问 https//username:password@site.com,但不能使用 Internet Explorer 10(Windows 7))

我尝试根据这篇文章更新 Windows 注册表,但它不适用于 IE10: http://aleetesting.blogspot.se/2011/10/selenium-webdriver-tips.html

任何友好的人都可以帮助我提供一个很好的解决方案,如何通过 Windows 身份验证使用 https://username:password@site.com 在 IE10 中?

或者有没有人有更好的方法来处理 Selenium webdriver 的 Windows 身份验证问题?

最好的问候 卡尔

【问题讨论】:

  • 你必须使用 AutoIT

标签: c# selenium windows-7 internet-explorer-10 windows-authentication


【解决方案1】:

在 Windows 7 中,您可以使用凭据管理器将站点的凭据保存在保管库中。身份验证现在自动进行。

【讨论】:

    猜你喜欢
    • 2015-07-26
    • 1970-01-01
    • 2014-06-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-19
    • 2018-03-18
    • 2013-10-18
    相关资源
    最近更新 更多