Hi, Sorry, but I couldn't find any advice on where (mailing list, stack etc.)
to post questions on best practices, so now I do it here (feel free to delete
my question).
I have a webpage that is very slow to load, and for a lot of reasons, I cannot
change that. Whenever I use browser.goto('http://very_slow_url.com') it times
out before the page is loaded. How can I change that timeout?
PS. this is the error:
````
Timeout::Error
/home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:146:in
`rescue in rbuf_fill'
/home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:140:in
`rbuf_fill'
/home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:122:in
`readuntil'
/home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:132:in
`readline'
/home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2562:in
`read_status_line'
/home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2551:in
`read_new'
/home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1319:in
`block in transport_request'
/home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in
`catch'
/home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in
`transport_request'
/home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1293:in
`request'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51:in
`request'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.2.17/lib/new_relic/agent/instrumentation/net.rb:22:in
`block in request_with_newrelic_trace'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.2.17/lib/new_relic/agent/method_tracer.rb:242:in
`trace_execution_scoped'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.2.17/lib/new_relic/agent/instrumentation/net.rb:21:in
`request_with_newrelic_trace'
/home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1286:in
`block in request'
/home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/http.rb:745:in
`start'
/home/deployer/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1284:in
`request'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51:in
`request'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.2.17/lib/new_relic/agent/instrumentation/net.rb:22:in
`block in request_with_newrelic_trace'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.2.17/lib/new_relic/agent/method_tracer.rb:242:in
`trace_execution_scoped'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.2.17/lib/new_relic/agent/instrumentation/net.rb:21:in
`request_with_newrelic_trace'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/selenium-webdriver-2.27.2/lib/selenium/webdriver/remote/http/default.rb:83:in
`response_for'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/selenium-webdriver-2.27.2/lib/selenium/webdriver/remote/http/default.rb:39:in
`request'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/selenium-webdriver-2.27.2/lib/selenium/webdriver/remote/http/common.rb:40:in
`call'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/selenium-webdriver-2.27.2/lib/selenium/webdriver/remote/bridge.rb:615:in
`raw_execute'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/selenium-webdriver-2.27.2/lib/selenium/webdriver/remote/bridge.rb:593:in
`execute'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/selenium-webdriver-2.27.2/lib/selenium/webdriver/remote/bridge.rb:99:in
`get'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/selenium-webdriver-2.27.2/lib/selenium/webdriver/common/navigation.rb:14:in
`to'
/home/deployer/apps/au/shared/bundle/ruby/1.9.1/gems/watir-webdriver-0.6.2/lib/watir-webdriver/browser.rb:77:in
`goto'
/home/deployer/apps/au/releases/20130115125545/lib/tester.rb:22:in `fetch_page'
````
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/issues/177
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development