[EMAIL PROTECTED] wrote:
> Hi
>
> I still can't get this to work.
>
> If I run the following code, Ruby returns the error message 'Unable to
> attach to Modal Window nil after 10.5 seconds'
>
> Watir::IE::attach_timeout = 10
>
> ie = Watir::IE::new
>
> ie.goto("http://www.echoecho.com/javascript4.htm";)
> ie.button(:name, "B1").click_no_wait
>
> modal = ie.modal_dialog
>
> What am I doing wrong?
>
> Thanks
>   

This is not the right command for this kind of dialog. The modal_dialog 
command is for modal web dialogs that are posted using the 
showModalDialog command.

You have what some people call a JavaScript dialog or an Alert dialog. 
(It is in fact a modal dialog, but a different kind of modal.)

Frankly, there are a number of what i consider to be hacks that Watir 
users have used to handle these dialogs. But you'll have to get advice 
from the people who use them -- not me.

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

Reply via email to