IE WebDriver Selenium in Use with Active Directory

2019-08-28 01:05发布

问题:

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.