method Timeout::timeout throw Timeout::Erorr exceptions,it happens if
browser can't open or open it too slow.
you should test the url manual,or increase var 'toutval'.
在 Tue, 02 Mar 2010 01:17:53 +0800,hliauw <hli...@gmail.com> 写道:
Hi, can somebody help me understand the following exceptions? it
happened on both ie and firefox goto call.
E, [2010-03-01T04:11:28.918000 #2884] ERROR -- : Exception in goto:
execution expired: ["C:/Ruby/lib/ruby/1.8/timeout.rb:60:in `wait'",
"C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:
355:in `goto'", "C:\\myFolder/myWrapperFile.rb:64:in `goto'", "C:/Ruby/
lib/ruby/1.8/timeout.rb:62:in `timeout'", "C:\\myFolder/
myWrapperFile.rb:62:in `goto'", "C:/myFolder/myTestFile1.rb:30"]
E, [2010-02-27T04:13:58.575000 #3888] ERROR -- : Exception in goto:
execution expired: ["C:/Ruby/lib/ruby/1.8/timeout.rb:60:in
`read_socket'", "C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/
firewatir/jssh_socket.rb:6:in `js_eval'", "C:/Ruby/lib/ruby/gems/1.8/
gems/firewatir-1.6.5/lib/firewatir/firefox.rb:492:in `wait'", "C:/Ruby/
lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:196:in
`goto'", "C:\\myFolder/myWrapperFile.rb:64:in `goto'", "C:/Ruby/lib/
ruby/1.8/timeout.rb:62:in `timeout'", "C:\\myFolder/myWrapperFile.rb:
62:in `goto'", "C:/myFolder/myTestFile2.rb:26"]
here is the relevant code in myWrapperFile.rb starting from line 62:
Timeout::timeout(toutval) do
begin
browser.goto(url)
rescue Timeout::Error
logger.error("goto call got hung after #{toutval}s");
rescue Exception => e
logger.error("Exception in goto: #{e.message}:
#{e.backtrace.inspect}");
end
end
--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
--
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
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/watir-general