Jump to content

Automation using file browser

Recommended Posts



I'm using selenium + C#, and AutoIT give me great solution to use file browser.

I'm running my tests on virtual machines, I noticed that when the AutoIT code need to run and my VM is in the background it's not working, do nothing, nothing happend in the file browser.

This is my AutiIT code:

AutoItX3 autoItObj = new AutoItX3();                
autoItObj.WinActivate("Open"); //Get the open window
autoItObj.Send(@"C:\Users\tfslab\Desktop\TestAppOffline.zip"); //send the file path
autoItObj.Send("{ENTER}"); //click on OK in the file browser


Any suggestions?


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


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.