C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:146:in `rescue in rbuf_fill':
Timeout:
:Error (Timeout::Error)
from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:140:in
`rbuf_fill'
from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:122:in
`readuntil'
from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:132:in `readline'
from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:2562:in
`read_status_line'
from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:2551:in `read_new'
from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1319:in `block in
transport_r
equest'
from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1316:in `catch'
from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1316:in
`transport_request'
from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1293:in `request'
from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1286:in `block in
request'
from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:745:in `start'
from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:1284:in `request'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/remote/http/default.rb:83:in `response_for'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/remote/http/default.rb:39:in `request'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/remote/http/common.rb:40:in `call'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/remote/bridge.rb:615:in `raw_execute'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/remote/bridge.rb:593:in `execute'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/remote/bridge.rb:561:in `find_element_by'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2/lib/s
elenium/webdriver/common/search_context.rb:42:in `find_element'
from C:/Documents and Settings/rakshiar/My
Documents/userdata/Ruby/Scrip
ts/answerlist.rb:29:in `rescue in <main>'
from C:/Documents and Settings/rakshiar/My
Documents/userdata/Ruby/Scrip
ts/answerlist.rb:21:in `<main>'
element = driver.find_element :name => "j_username"
element.send_keys "####"
element = driver.find_element :name => "j_password"
element.send_keys "#####"
driver.find_element(:name, "login").submit #<== from here the code went
to forever loading and after that thrown error.Not reaching to the below
statement. tried also - "driver.manage.timeouts.implicit_wait = 10". But
no result.
Do you get any response from that submit if you locate and click it as a
button?
After clicking on a submit, it's bringing me to the correct page,but
browser is showing "Loading Loading...... loading...." after that error
has been thrown and the browser still loading,after a long while - I can
see that the page is loaded.
element = driver.find_element :name => "j_username"
element.send_keys "####"
element = driver.find_element :name => "j_password"
element.send_keys "#####"
driver.find_element(:name, "login").submit #<== from here the code went
to forever loading and after that thrown error.Not reaching to the below
statement. tried also - "driver.manage.timeouts.implicit_wait = 10". But
no result.
### or here should I need to put this -
"driver.manage.timeouts.page_load = 180"?######
C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:146:in `rescue in rbuf_fill':
Timeout:
:Error (Timeout::Error)
from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:140:in
`rbuf_fill'
from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:122:in
`readuntil'
from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:132:in `readline'
from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:2562:in
`read_status_line'
Is there anyway to handle these exception,try to make alive the driver
continue with the browser till the page load completed?