Re: [wtr-general] Interaction with "Resend" confirmation dialog box using Watir-Webdriver

2011-05-25 Thread Jari Bakken
On Wed, May 25, 2011 at 12:20 PM, the_zonker  wrote:
> Hi guys,
>
> First of all my environment:
> watir-webdriver 0.2.3
>
> A Web application I testing has parameters which are sent to server
> during page load.
> It causes "Retry" confirmation dialog in IE and "Resend"in FF when I
> refresh any page of the application.
>
> Is there any way to handle this pop up which is stopping my scripts?
>
> I tried to send "Enter" key directly to Watir::Browser instance but it
> didn't help.
> All webdriver actions are stopped after appearing of them.
>
> It seems that this modal dialog is on the Browser's top level and
> Webdriver cannot handle it.
> But I hope that there is way to workaround it.
>
> Please, help.
> I appreciate any effort.
>
> Regards, Vadim
>

Are these JavaScript alerts (i.e. using the
window.{alert,confirm,prompt} functions)? If so you can work around it
by using the alerts extension:

  
https://github.com/jarib/watir-webdriver/blob/master/lib/watir-webdriver/extensions/alerts.rb

Jari

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Interaction with "Resend" confirmation dialog box using Watir-Webdriver

2011-05-25 Thread the_zonker
Hi guys,

First of all my environment:
watir-webdriver 0.2.3

A Web application I testing has parameters which are sent to server
during page load.
It causes "Retry" confirmation dialog in IE and "Resend"in FF when I
refresh any page of the application.

Is there any way to handle this pop up which is stopping my scripts?

I tried to send "Enter" key directly to Watir::Browser instance but it
didn't help.
All webdriver actions are stopped after appearing of them.

It seems that this modal dialog is on the Browser's top level and
Webdriver cannot handle it.
But I hope that there is way to workaround it.

Please, help.
I appreciate any effort.

Regards, Vadim

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com