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:inrbuf_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:inreadline’
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:inread_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:incatch’
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:inrequest’
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:instart’
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:inresponse_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:incall’
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:inexecute’
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:infind_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’
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.
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.
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:inrbuf_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:inreadline’
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?