Hi Lisa,

Still I am getting following error..here is my code and error.
What I noticed was after I got the popup its staying there just like
that, no action is happening. If I respond to that popup by clicking
"OK" button popup will close then this error messages are coming.
require "watir"
require "win32ole"
require 'watir/screen_capture'
require 'watir\ie'
require 'watir\contrib\enabled_popup'

hwnd = ie.enabled_popup(5)
puts hwnd
if (hwnd)  #yeah! a popup
  popup = WinClicker.new
  popup.clickWindowsButton("Windows Internet Explorer", "OK", "30")
>ruby Phone_Mask_Test.rb
warning: already initialized constant ATTACHER
59:in `wait_until': Timed out after 5.5 seconds.
        from C:/Ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/
waiter.rb:80:in `wait_until'
        from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir\contrib
\enabled_popup.rb:10:in `enabled_popup'
        from Phone_Mask_Test.rb:132

>Exit code: 1

Thank you,

On May 15, 5:28 am, ash <ashbr...@gmail.com> wrote:
> There are now a number of threads regarding pop ups including those
> referring to javascript alerts.
> I have successfully scripted checks for the 'OK' button on an alert
> but am now struggling with an alert that has different options and
> would gratefully receive any advice out there.
> On May 15, 8:36 am, suri <sureshreddy....@gmail.com> wrote:
> > Better to use click_no_wait instead only click- Hide quoted text -
> - Show quoted text -
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to