Sign in to follow this  
Followers 0
gradient88

autoit fileupload in background

1 post in this topic

Hi,

I'm trying to use autoit to automate the file upload feature in combination with selenium. Since we are running our selenium test cases in the background we want autoit to run the same way without popping a window in the foreground.

I recently installed autoit and was playing around with it. What i did so far is that I wrote this four line script that specifies the correct path to the file in windows explorer when i click on the browse page of the website. However, i am not sure that if i take this executable and use it in my selenium test cases, that it will do this in the background.

My script goes like this:

WinActivate("File Upload");

Local $file = "c:\note1.txt"

ControlSetText("File Upload", "", "Edit1", $file )

ControlClick("File Upload", "", "Button2")

I need some help in understanding how to do this in the background and somebody can provide me with some sample code that would be helpful.

Thanks in advance!

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