Hi,

I had to use the AutoIT tool for identifing the INSTANCE of buttons. Then it 
worked for me:

autoit = WIN32OLE.new('AutoItX3.Control')
autoit.WinWaitActive("File")   #File Download popup
autoit.ControlClick("File","","[CLASS:Button;TEXT:&Save;INSTANCE:2]")   
#clicking Save button

autoit.WinWaitActive("Save As")   #catching the Save As popup
autoit.Send("file_name") #sending file name into window
autoit.ControlClick("Save As", "", "[CLASS:Button;TEXT:&Save;INSTANCE:2]")  
#clicking Save button

autoit.WinWaitActive("Download") #catching Download popup
autoit.ControlClick("Download", "", "[CLASS:Button;TEXT:&Open;INSTANCE:2]") 
#opening the downloaded file

Hope this will help

Br,
Sfistak
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to