B> There is some support for some modal dialogs in 1.4.
B>
B> It is often awkward, and will be improved in 1.5. There are also some types
B> of dialogs (not those mentioned by the OP) that can't be accessed using 1.4.

J> Not even using AutoIt ???
J>
J> I was under the impression that we could do just about ANYTHING with AutoIt.

You can.

I showed how you can deal with Open/Save dialogs in this post:
http://www.mail-archive.com/[email protected]/msg01262.html

Earlier, I posted a more complete and easy-to-use solution for dealing with 
Javascript dialogs (confirms and alerts):
http://rubyforge.org/pipermail/wtr-general/2005-August/003352.html

A note when doing this stuff: modal dialogs are tricky partly because the Ruby 
thread will block, and partly because bits of Watir (Watir::Simple is the only 
bit I've had trouble with) specifically wait until IE is in Ready mode. You 
might need to override a method like Watir::Simple's wait_for_ie to not wait.

Also, different IE versions may assign different titles and text in dialogs, 
making some of this AutoIt code non-portable, although that hasn't been a 
problem for me so far.

Cheers,
Dave 

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

Reply via email to