A test based on Selenium Webdriver in C # should log in using Windows Authentication.
I tried several approaches:
_Driver.SwitchTo().Alert();
_Driver.FindElement(By.Id("UserName")).SendKeys("LynnTest");
_Driver.FindElement(By.Id("Password")).SendKeys("Welcome1!");
_Driver.SwitchTo().Alert().Accept();
_Driver.SwitchTo().DefaultContent();
and
IAlert alert = _Driver.SwitchTo().Alert();
alert.SendKeys("LynnTest\\t");
alert.SendKeys("Welcome1!");
_Driver.SwitchTo().Alert().Accept();
_Driver.SwitchTo().DefaultContent();
None of them are successful. I donβt get the Windows authentication dialog on my local system, so I canβt look at the source to determine how to find the username and password using the Selenium By method.
I believe the windows authentication window is provided by the browser, but I did not find any source for the dialog.
Selenium ( AutoIt ) Windows? Selenium, . , .
. URL- , , html .