Is there a better way of sending tabs through Watir than using the windows
scripting host?
require 'win32ole'
wsh = WIN32OLE.new("WScript.Shell")
i=0
loop do
wsh.SendKeys "{TAB}"
i += 1
break unless i <=14
end
Not really. But there is a better way to do loops:
14.times { wsh.SendKeys "{TAB}" }
Bret
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general