Using Selenium Webdriver with Windows Authentication (in Chrome) C#/ASP.Net

Viewed 1427

Google dropped support for passing windows credentials via URL and it broke a lot of automation for me. (username:password@www.url.com)

https://www.chromestatus.com/feature/5669008342777856

I found there is a solution using AutoItX dll which I added and it works fine when running locally, but when deployed to web server it does not send key strokes.

This is what I have.

AutoItX.WinWaitActive(authenticateurl + " - Google Chrome", "", 10);
AutoItX.WinActivate(authenticateurl + " - Google Chrome");
AutoItX.Send(AdminUsername + "{TAB}");
AutoItX.Send(AdminUserpass + "{ENTER}");

Any idea why AutoItX would not work when deployed? Is there a better alternative to pass windows credentials in the Chrome Browser? Thank you in Advance!

1 Answers
Related