@snowe2010 i have had similar timeout issue. From your code, i assume(you
havent provided full stack trace) the timeout exception happens at the click
api (browser.button(:'id' => 'u_0_f').click). In watir, certain apis, besides
their regular operation also waits for the page to load. if your page happens
to talk to lots of services, chances are high that even though 99% of the page
is loaded, your page is still talking to some slow service. click api in this
case wait and times out.
The solution we have is to extent Watir::Element class and add another api
called click_no_timeout OR directly rescue Timeout::Error where this is
happening. This method has the same behaviour as click except it rescues the
timeout and allow the automation to continue. In case of real issue of page not
loading, subsequent steps will fail.
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/236#issuecomment-32093156
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development