Jump to content

Automation using file browser


LiorWa
 Share

Recommended Posts

Hi,

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?

Thanks!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...