-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Net::ReadTimeout: Net::ReadTimeout with #<TCPSocket:(closed)> #7563
Comments
Is your server page loads for more than 60 seconds? If yes, then you just need to increase the timeout - https://github.com/SeleniumHQ/selenium/wiki/Ruby-Bindings#internal-timeouts |
But it should have been like one has to set the value here
not like this
That's the way Java binding works. But here in ruby selenium binding |
@Rajagopalan-M That's how specification defines page load timeout:
For navigation triggered by element clicks, it should be ignored. |
@p0deje |
You are right, in Java this works the same way. I even found a test for that. However, both Java and Ruby does the same thing when setting timeout, so I guess in Ruby you should also be able to just do the following and avoid timeout errors: driver.manage.timeouts.page_load = 120 |
I am not sure whether I misunderstood you.
The above line not doing the same thing. If you set page_load in Java, it's used for loading the page as a result of loading the url by driver.navigate().To and also the page loading as a result of clicking the button but in ruby if you set page_load then it is only used Page loading as a result of |
Hm, it should work the same way. If it is not, can you create a bug report with the test case on how to reproduce? |
Okay, I will do it tomorrow morning. Thank you very much. |
I don't have site which loads more than 3 seconds after a button click. I have one but that's my internal site. So use any site in the given below program and you can clearly see button click throws the time out error after 3 seconds. And I reduced this timeout to 3 seconds for you to notice the fact that setting up page load Here is my program
|
I've just added more tests for page load timeout in Ruby (81552aa) and both scenarios timeout properly:
@Rajagopalan-M If you can find a case when it doesn't work in Ruby that I can use to debug the issue, please create a new bug report. |
@p0deje Sure thank you very much . I will check and let you know. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm getting this exception very often when the server is pretty loaded:
It seems that it would make sense to catch
Net::ReadTimeout
and retry, just like you are catching similar exceptions, inhttp/default.rb
.The text was updated successfully, but these errors were encountered: