<-- other requires omitted -->
require 'watir/contrib/enabled_popup'
reguire 'thread'

  def startClicker(ie, button)
    # Strart a new thread that will dismiss the JSPopup.
    t = Thread.new {
        w = WinClicker.new               
        hwnd = $ie.enabled_popup(10) if nil == hwnd
        w.clickWindowsButton_hwnd(hwnd, button)
        t.join
        w = nil
    }
  End

...

  # Start the thread before it gets locked by the JSPopup
  startClicker( $ie, 'OK')

  # The set spawns a JSPopup
  $ie.checkBox( :name, "read_instructions").set

--Mark


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Maloy kanti
debnath
Sent: Monday, May 14, 2007 2:17 AM
To: [email protected]
Subject: [Wtr-general] Not able to identify a pop up

hi all,

        I have a problem i have to click a pop up ok button after i
select a item from a select list ... now the problem is i am not able to
click that ok button...i tried with cilck_no_wait....... i am not able
to use click_no_wait because i am not actually clicking anyting ....how
can i make watir recognize the pop up 

thanks in advance,
maloy
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to