LiorWa Posted August 2, 2016 Share Posted August 2, 2016 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 More sharing options...
AutoBert Posted August 2, 2016 Share Posted August 2, 2016 Read http://www.networkautomation.com/urc/knowledgebase/running-interactive-tasks-in-minimized-remote-desktop-windows/4ecdf43e03470/ and you understand why script don'work when vm is in background. LiorWa 1 Link to comment Share on other sites More sharing options...
LiorWa Posted August 2, 2016 Author Share Posted August 2, 2016 It's works. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now