Jump to content

C# / IIS autoit not sending keystrokes

Recommended Posts

My project using c# with selenium driver and hosted on iis server

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


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

This is all the code I have specific to autoitx

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

App pool is running using admin account. I also registered dll and no error is thrown.


Any idea why AutoItX would not send keystrokes when deployed? I am sure there is some configuration I am missing on a web server.


Thank you in Advance!


P.s. I used this for reference http://learn-automation.com/handle-windows-authentication-using-selenium-webdriver/

Link to post
Share on other sites
  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...