[Wtr-general] IE.GoTo - Can You Set A Timeout or an Idle?

Norm forum-watir-users at openqa.org
Thu Oct 12 17:17:28 EDT 2006


Thanks for your help guys, I was just able to get that other code working (I think) by modifying the code a little. (Apparently the "def timeout" wasn't needed?...)

require 'watir'

ie = Watir::IE.new

#def timeout
  begin
    timeout(1.0) do |timeout_length|                  
      ie.goto("www.google.com")                       
    end
  rescue Timeout::Error => e
    puts "Error Message: " + e
    ie.close
  end
#end
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=4767&messageID=13173#13173


More information about the Wtr-general mailing list