Sign in to follow this  
Followers 0
dkreviews

C# / IIS autoit not sending keystrokes

2 posts in this topic

#1 ·  Posted

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)

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

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



#2 ·  Posted

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  
Followers 0