Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在尝试使用 Selenium WebDriver for IE 导航到网页时,我遇到了无法登录该站点的问题。该登录名是一个 Windows 安全 Active Directory 登录名,显示在如下弹出窗口中。有没有人幸运地进入这个登录?
不,AFAIK 无论如何都没有使用 webdriver。您最好的机会是寻找能够处理 kerberos、NTLM 或任何您拥有的任何东西的代理。
无论如何,使用 Firefox,我对 user:pass@yoursite.com mechanizm 有一些运气,但我不记得在那种情况下使用了什么身份验证方案。
如前所述,使用 Firefox 可以通过创建配置文件来实现。除此之外,HtmlUnitDriver 支持用于身份验证的活动目录登录。