A comment -- when substituting this: === #Ensure popup won't block Watir ie.button(:name, "btnG").click_no_wait ie.dialog.button('OK').click ===
for this: === #Ensure popup won't block Watir ie.button(:name, "btnG").click_no_wait #Handle the popup hwnd = ie.enabled_popup(5) if (hwnd) #yes there is a popup p hwnd w = WinClicker.new w.makeWindowActive(hwnd) w.clickWindowsButton_hwnd(hwnd, "Yes") end === I get the following error: " 1) Error: test_search(TC_article_example): NoMethodError: undefined method `dialog' for #<Watir::IE:0x27e62e0>" So while the code I posted in wikipedia may not be the prettiest -- it DOES work -- and works reliably. --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=4501&messageID=12545#12545 _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general