> [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

Again this is why we need some documentation. People don't know the difference 
between these different kinds of popups. It would be useful to know 
specifically when to use the modal dialog versus the enable_popup and 
Winclicker code. Part of the reason for documentation is that not everything 
posted in these forums is valid for the up to date versions of Ruby and Watir. 
And people need to spend a lot of time hunting. Testers aren't going to do 
that. Developers may.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=4226&messageID=11871#11871
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to