Hi Sandeb, I also used to get that error in the 'enabled_popup' line but it does not seem to come after the previous version of 'watir gem' (1.5.1.1100) was uninstalled and the latest version (1.5.1.1127) was installed. Try that. It may work for you also. You may install the latest version of watir gem from the link given below:
http://wiki.openqa.org/display/WTR/Development+Builds The piece of code that is currently being used to handle popups (simple function - just clicks the 'Ok' button of the popup window) in our script is (got from one of the forums): # should use 'click_no_wait' in the below statement and not 'click' ie.frame("Toolbar").link(:text,"Log out").click_no_wait hwnd = ie.enabled_popup(5) # get a handle if one exists if (hwnd) # yes there is a popup w = WinClicker.new w.makeWindowActive(hwnd) w.clickWindowsButton_hwnd(hwnd, "OK") end along with the statement, require 'watir/contrib/enabled_popup' , at the begining of the script. Hope, the reply was useful. Vijay. --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5505&messageID=15330#15330 _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
