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 ::HANDLE_MODAL
10 ie.goto "http://www.mytargetsite.com "

But I got the following errors:
>ruby HandleModal.rb
HandleModal.rb:9: warning: parenthesize argument(s) for future version
HandleModal.rb:9: uninitialized constant HANDLE_MODAL (NameError)

Any help?

Thanks
Ste



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to