Sign in to follow this  
Followers 0
midhun

File upload using AutoIT

1 post in this topic

Requesting for anyone to help me out with file upload using AutoIT for flash applications.

http://allrecipes.co.uk/cooks/registration.aspx

In the above URL, the upload photo is flash controlled. Using selenium I am able to use FlashSelenium and click on Upload photo button.

FlashApp.Call("click") --> Method will click on the Upload Photo flash and a window browse popup opens

But the big trouble is to select an image from the window browse button. The code that I tried using AutoIT is -

/******************************************************************************************************************************************

$var = FileOpenDialog("File Upload", "C:\Documents and Settings\mgollapa\workspace\AllRecipes\Pictures", "Scripts (*.jpg;*.png;*.gif)", 2)

; option 2 = dialog remains until valid path/file selected

WinActivate("File Upload")

ControlClick("[CLASS:File Upload]", "kill_bill.jpg", 1148, "")

*******************************************************************************************************************************************/

But this is not working.. Any help??

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