Hi Ste,
Earlier the wait method would get stuck when there is a popup during
page laoding.
Now it exits from the waut method and waits for you to handle the
popup.
Refer to this to handle popups - (doesnt use autoit for this)
Hi Tony,
I replaced the wait method as you suggested (I had before to update
watir: now I have installed ruby 1.8.6 and watir 1.6.2) but I have not
succeeded in my goal, yet.
After the page loading (for example, after the command ie.goto http://
www.mytargetsite.com) the command ends without
Hi,
Whenever there is a modal dialog during a page load, the wait method
will be stuck till someone clicks on the OK or CANCEL to dismiss the
modal dialog.
The code will be stuck in the below while loop the wait method(ie-
class.rb).
begin
while @ie.busy # XXX need to add time out
Hi Charley,
thanks for your reply. I tried the following very simple script:
1 require 'watir'
2 include Watir
3
4 module PageCheckers
5 HANDLE_MODAL = lambda {|ie| ie.modal_dialog.button(:id,
'OK').click}
6 end
7
8 ie = Watir::IE.attach(:title, /TARGET_SITE/)
9 ie.add_checker PageCheckers
Hi
I have also encountered a similar problem, of handling popup during page
load and page close events.
Is there any solution for the same in watir??
On Tue, Aug 18, 2009 at 2:44 PM, Ste stefano.porcare...@poste.it wrote:
Hi,
I am not able to handle modal dialog window controls when such a
Watir has a page checker that allows you to run specific methods on page
load. Something along the lines of this:
module PageCheckers
HANDLE_MODAL = lambda {|ie| ie.modal_dialog.button(:id, 'ok').click} # or
whatever, do something with your modal dialog
end
register the method
ie.add_checker