Windows Authentication Processing with Selenium Webdriver

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 .

+4
3

, , , . , .

0

Selenium. - , . Selenium , .

auth .

:


  1. "" . "" . , . , "".
+3

URL- , , "AutoIt V3", Windows.

0

All Articles