Hi wtr lists

I have tried a few options like WinClicker, and the
jscript_test in the unittests examples but I couldn't get
it to work. Now I'm invoking autoIt from my Watir script. 
Description:
I click a delete asset icon which brings up a javascript
popup with the title "Microsoft Internet Explorer" and with
the text "Are you sure you want to delete this asset?". The
popup has two buttons: Ok and Cancel.

This is what i have at the top of my script
require 'win32ole'
autoit = WIN32OLE.new('AutoItX3.Control')
...

and to click the Ok button on the popup I have
autoit.ControlGetFocus "Microsoft Internet Explorer", "Are
you sure you want to delete this asset?"
autoit.ControlClick "Microsoft Internet Explorer", "Ok",
"1", "left", 1

but my Watir script just hangs there without throwing any
errors.

thanks 


        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to