Closed ozymandias547 closed 10 years ago
Try this: http://nightwatchjs.org/api/timeouts.html. Are there perhaps any scripts in the page that may prevent the page to finish loading?
any luck with that?
Thanks for the suggestion. We'll give that a shot. it's not easy to reproduce, and I'll get back to you when it does and we find out more about using the timeouts command.
What is the proper usage of the timeouts action? I don't see where to add the timeouts configuration. Could you give an example?
I think you just need to do a client.timeouts(
Actually you need to pass in more stuff as seen here: https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/timeouts
Also the current implementation is incomplete so it won't work. I'll have to release a fix for it soon.
Great, I'll give it a good round of real-life tests once it's done.
timeouts commands should be working fine now.
Thanks for setting up the timeouts command. It helped us find out that this is most likely not a nightwatch issue at all. I'm closing this issue as not a bug.
When running tests on one of our environments, 1 out of 10 times we get to this situation:
The server just hangs there forever. It doesn't seem like Selenium is ever giving a response to the url request even though the session has been set. Do you think this a nightwatch issue? If not, is there a way to make a timeout on the HTTPRequest that guarantees a build will never hang like this?
Thanks in advance!