I use this method only for unexpected popups.
But for expected popups (e.g. file downloading) I use click method,
not click_no_wait. In watir 1.6.5 click_no_wait doesn't work for me at
all, it highlight element but doesn't click . In 1.6.2 it was ok.

On Mar 24, 12:38 am, Darryl Brown <d-l-br...@roadrunner.com> wrote:
> Hi,
>
> Are you running a test that encounters unexpected popups?
> If they are expected, why not use click_no_wait and handle them
> individually.
>
> Regards,
> Darryl
>
> On Mar 23, 11:38 am, al3kc <aleks.kiev...@gmail.com> wrote:
>
> > I have found work around for my problem. I use the following methods
>
> > def check_for_popups
>
> >   loop do
>
> >     popup = autoit.WinWait('Confirm, '', 0.1)
>
> >     if  popup == 1
> >       autoit.Send('{ENTER}')
> >     end
>
> >   end
> > end
>
> > and create new process with this method:
>
> > @pid = Process.create(
> >     :app_name       => 'ruby popup_closer.rb',
> >     :creation_flags  => Process::DETACHED_PROCESS
> >     )
>
> > So in my case popup should be clicked almost instantly, otherwise
> > tests will hang. Is this expected behavior?

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com

To unsubscribe from this group, send email to 
watir-general+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to