Timeout::timeout(10)do
  begin
      @b.goto(url)
  rescue Timeout::Error
      puts 'Page took longer than 10 seconds to load'
  end
end

The proceeding code still throws the Timeout::Error exception. At
least in FireWatir, this doesn't work. Rather, one must

begin
  Timeout::timeout(10)do
    ff.link(:url, "javascript:KWSearchSubmit()").click
  end
rescue Timeout::Error
  puts 'Page took longer than 10 seconds to load'
end


Not sure about Watir. Keep up the good work, though!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to