A quick check will tell you if it's a modal dialog. Open ie to the page that
launches the dialog. Open irb in a command window. In irb type:
require 'watir'
ie = Watir::IE.attach(:title, /some part of the ie title/)

Launch the dialog. Back in irb type:
puts ie.modal_dialog.title

If you get a title string then you've got an ie modal dialog which you can
interact with using ie.modal_dialog

The tricky thing with modal dialogs is getting the controls. You can dump
the html into a file, pop it open using ie and then use ie developer toolbar
on it.

-Charley

On 7/10/07, Bret Pettichord <[EMAIL PROTECTED]> wrote:

Paul Rogers wrote:
> have you looked at the modal_dialog stuff in watir? Ive never used it
> so cant help you much, but its there.
+1
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to