Jump to content
Sign in to follow this  

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/

Share this post

Link to post
Share on other sites

Any suggestions would be appreciated. I am out of ideas. Thank you

Share this post

Link to post
Share on other sites

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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.