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 '[email protected]'
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

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

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: Ha, interestingly, I saw this issue acorss Ruby, Python and C#, but I never had chance to play with Java.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.