Hi,
For me it works this way (watir-1.5.1.1166)
require 'watir/contrib/enabled_popup'
ie.button(:value, /#{valid_text}/).click_no_wait #pressing
button after which popup shows
hwnd = ie.enabled_popup(15) # get a handle if one exists
if (hwnd) # yes there is a popup
w = WinClicker.new
w.makeWindowActive(hwnd)
w.clickWindowsButton_hwnd(hwnd, "Yes") # click the "Yes" button
end
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general