Hi guys
I have next situation: When I click on one of buttons in my application,
page is loading for more than two minutes and raise exception inside of
watir-webdriver click method.
Obviously any waiters (like wait_until something) will not help in this
situation, because exception is raised after event, not before action.
Code is simple:
browser.button(:type, "submit").click
or
browser.button(:type, "submit").wait_until_present.click
Exception:
C:/Ruby192/lib/ruby/1.9.1/net/protocol.rb:140:in `rescue in rbuf_fill':
Timeout::Error (Timeout::Error)
from C:/Ruby192/lib/ruby/1.9.1/net/protocol.rb:134:in `rbuf_fill'
from C:/Ruby192/lib/ruby/1.9.1/net/protocol.rb:116:in `readuntil'
from C:/Ruby192/lib/ruby/1.9.1/net/protocol.rb:126:in `readline'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:2219:in
`read_status_line'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:2208:in `read_new'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:1191:in
`transport_request'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:1177:in `request'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:1170:in `block in
request'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:627:in `start'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:1168:in `request'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/re
mote/http/default.rb:82:in `response_for'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/re
mote/http/default.rb:38:in `request'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/re
mote/http/common.rb:40:in `call'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/re
mote/bridge.rb:598:in `raw_execute'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/re
mote/bridge.rb:576:in `execute'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/re
mote/bridge.rb:358:in `clickElement'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.25.0/lib/selenium/webdriver/co
mmon/element.rb:54:in `click'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.2/lib/watir-webdriver/elements/
element.rb:131:in `click'
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.