When attempting to navigate to a web page using the Selenium WebDriver for IE, I run into the issue of not being able to login to the site. The login is a windows security Active Directory login that appears in a popup like below. Has anyone had any luck with getting into this login?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
No, AFAIK not with webdriver anyway. Your best chance is to look for a proxy that is capable of handling kerberos, NTLM or whatever you have there.
Anyway, with firefox i had some luck with user:pass@yoursite.com mechanizm, but I don't remember what authentication scheme was used in that case.
回答2:
As said earlier, with Firefox its possible by creating a profile. Other than that HtmlUnitDriver supports active directory login to be used for authentication.