From: Shawn Anderson Date: 2007-08-07T03:50:46+09:00 Subject: Re: Watir Javascript popup handler: How to handle the popup dialog? ------=_Part_155372_24701552.1186426251401 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Rajesh, There is some good info here in the FAQ about js popups: http://wiki.openqa.org/display/WTR/FAQ Also, just a note: keep in mind that doing a "click" in watir equates to a click and wait. therefore your current thread is waiting for IE to come back. Hope this helps, and if you need more help, please post your "popup handling" code. It will help to diagnose your problems. /Shawn On 7/30/07, Rajesh wrote: > > > Clarification regarding JSpopup_dialog. Winclicker supports the popup > when clicked on the link but the same fails in the second case. I > think Watir is unable to get the handle of the dialog...Any help??? > Application hangs... > > require 'watir' > > @ie = Watir::IE.new > @ie.goto("C:/test.html") > @ie.button(:caption, "Click this button").click > > I see that the application hangs up. How do i handle the dialog? > I need to validate the 'message' and then click on 'OK' > > I tried the methods in WinClicker.rb but could not succeed. It just > works fine when i do a click_no_wait but that doesn't serve my > purpose. > Any suggestions/solution would be greatly appreciated. > > Thanks in advance, > -- Rajesh.V > > > My Application: > ---------------------- > > > Page created for Testing > > > > >

Automation Testing

> >

This works fine with the existing WinClicker.rb:
> Click this link

>
> >

But this doesn't work !!!
> value="Click this button" /> >


> > > > > > ------=_Part_155372_24701552.1186426251401--