I understand what you are saying about the global variables, but in this case
they are a necessary evil as I am using the following code in order to handle
javascript pop-ups:
def startClicker( button , waitTime= 9, user_input=nil )
hwnd = $ie.enabled_popup(waitTime)
if (hwnd)
w = WinClicker.new
if ( user_input )
w.setTextValueForFileNameField( hwnd, "#{user_input}" )
end
sleep 3
w.clickWindowsButton_hwnd( hwnd, "#{button}" )
w=nil
end
end
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general