c# - 如何使用 Selenium Webdriver 和 Internet Explorer 10 处理 Windows 身份验证?

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

在使用 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 身份验证问题?

最好的问候 卡尔

最佳答案

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

关于c# - 如何使用 Selenium Webdriver 和 Internet Explorer 10 处理 Windows 身份验证?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21020181/

相关文章:

C#检查字符串数组中的特定字符串

c# - 如何使用 linq 从表中搜索任何属性?

testing - 设置 Selenium 测试的系统日期

javascript - 如何在 executeScript 方法中显示带有变量的 javascript 代码?

windows - 检查 .exe 文件的权限级别

C#/.NET : Creating a CAB and adding files to it without an external library

c# - 为什么 Elvis (?.) 运算符不适用于异步等待?

javascript - 如何在 Selenium 中获取 javascript 工具提示消息?

windows-7 - Console.Writeline c# 不工作

windows - Windows服务器上是否有任何参数可以控制CLOSE_WAIT连接状态的超时时间?