0

I am new to watir webdriver with ruby and I am trying out a few examples. I am getting a timeout error "Net::ReadTimeout: Net::ReadTimeout" for the following code -

b = Watir::Browser.new
b.goto "http://www.quora.com"
b.text_field(:name => 'email').set 'someone@gmail.com'
b.text_field(:name => 'password').set 'somepassword'
b.button(:class => 'submit_button').click

When I run the above code in console, firefox gets launched and quora main page comes up. But after that it doesn't do anything until it times out. I inspected the elements for username and password and they are right.

I ran the same code for gmail.com with the corresponding fields and it runs just fine.

Can someone please help?

Ameya

amey1908
  • 157
  • 3
  • 11

1 Answers1

2

This is a known issue with quora.com.

Currently I'm not aware of any solutions, one possibility is to disable JavaScript when you login, but in this case you can't do much else after login. Maybe you can create a ticket in Selenium issue tracker.

See similar questions asked before.

Community
  • 1
  • 1
Yi Zeng
  • 32,020
  • 13
  • 97
  • 125
  • It's interesting that I could get the same example to work in java using selenium, but not in ruby. Not sure what's the reason. – amey1908 Mar 12 '14 at 21:49
  • @amey1908: Ha, interestingly, I saw this issue acorss Ruby, Python and C#, but I never had chance to play with Java. – Yi Zeng Mar 12 '14 at 21:51