Hi,

I have a test to do the followings: login to web application and click button 
to open file download window.  Then, click Cancel button to close download file 
window.

The code below for download file window works fine in autoit.  But, is not 
working in Watir script.  The download window is open and  no clicking Cancel 
button action is performed.

Any thing is missing from my script?  Please help.

Code:
autoit = WIN32OLE.new('AutoItX3.Control')
autoit.WinWait("Choose file", nil, 5)
autoit.WinActive("Choose file")
autoit.ControlFocus("Choose file","","1138") #Puts Focus on Cancel button
autoit.ControlClick("Choose file","","1138") #clicks Cancel button

Thanks!
Kui
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to