watir/watir-webdriver — Issue #122: Basic Authentication failure
Author: anuragsatish
Created: 2012-02-20 06:28:11+00:00
State: open

Hi,

I am trying to do the basic authentication for website created by company. But the problem is I'm unable to login to the website due to the timeout error. This is happening when I launch the script in google-chrome.

But previously there was no such error like timeout when I launch the chrome and do furhter functions. But now I'm facing this issue and I dont know how to handle this...anyone help please.

My work environments are ubuntu 10.04 with ruby 1.9.2 under rvm. Below is the error I am facing right now :

1.9.2p290 :003 > b.goto "http://easlshe:Quadro123$@amsjtoolvm02.redback.com/sandbox_lsv3/"
Timeout::Error: Timeout::Error
from /home/paxterra/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:140:in `rescue in rbuf_fill'
from /home/paxterra/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:134:in `rbuf_fill'
from /home/paxterra/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:116:in `readuntil'
from /home/paxterra/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:126:in `readline'
from /home/paxterra/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:2219:in `read_status_line'
from /home/paxterra/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:2208:in `read_new'
from /home/paxterra/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1191:in `transport_request'
from /home/paxterra/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1177:in `request'
from /home/paxterra/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1170:in `block in request'
from /home/paxterra/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:627:in `start'
from /home/paxterra/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1168:in `request'
from /home/paxterra/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.18.0/lib/selenium/webdriver/remote/http/default.rb:81:in `response_for'
from /home/paxterra/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.18.0/lib/selenium/webdriver/remote/http/default.rb:43:in `request'
from /home/paxterra/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.18.0/lib/selenium/webdriver/remote/http/common.rb:40:in `call'
from /home/paxterra/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.18.0/lib/selenium/webdriver/remote/bridge.rb:544:in `raw_execute'
from /home/paxterra/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.18.0/lib/selenium/webdriver/remote/bridge.rb:522:in `execute'
from /home/paxterra/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.18.0/lib/selenium/webdriver/remote/bridge.rb:99:in `get'
from /home/paxterra/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.18.0/lib/selenium/webdriver/common/navigation.rb:14:in `to'
from /home/paxterra/.rvm/gems/ruby-1.9.2-p290/gems/watir-webdriver-0.4.1/lib/watir-webdriver/browser.rb:61:in `goto'
from (irb):3
from /home/paxterra/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `

'

Regards,
Anurag