Hangs on FindCss #796
Comments
I didn't realize that the default timeout for Capybara Webkit is -1, which I assume means never timeout. When I set the timeout to 30, the same log as the gist occurred, but it then failed with:
|
I realized the issue probably is that a Load Started was made after the In my test, the last action for the first scenario is a click, which for my purposes doesn't wait for the resulting page to load (since I didn't really care about the resulting page, as much as a backend process that would trigger). The next page does a javascript based As far as I can see, the only way to work around this issue is to make sure the |
We shouldn't be making requests after What triggers that last request there? Is it from a |
@jferris, if you are talking about When I did try using it, it did timeout as mentioned above. Let's call the 3 pages: submit, form, and paypal. I think the best way for me to explain it is if you see some of my capybara code: first("#paypal_amount").set @input_value
first("#paypal_submit").click That's the end of the test. So it's on submit page and that click leads to form page, that has a hidden form with values for submission, in addition to JavaScript on the page: $( document ).ready(function(){
$("#paypal-form").submit();
}) This will submit the form and take the user to the paypal page. I assumed that since the |
Sorry, by When the driver gets a reset command, it actually deletes all of the web page instances, so I'm surprised that they continue to make requests after a reset. We may need to tell the pages to stop processing (or just navigate to a blank page) before deleting them. |
Yeah, there's definitely no After further inspection, the first request after the |
I have a reproducible case that I will upload in a sec. |
Hey @jferris, I pushed a test case nritholtz@8cff5d3 but unfortunately I can't get it fail on every run, maybe you can see what could be added to make it consistently fail. However, running |
Thanks a bunch! I'll try to take a look at this tomorrow. |
Hey @jferris, I know it's been super busy, but any chance of taking a look at this? |
Closing due to age - We can reopen if this is still an issue with current releases. |
I'm trying to figure out exactly what's going on here in my test case, but I figured you guys might know what's going on quicker than I will.
Here is the gist for the webkit debug. Essentially there's two cucumber scenarios ran one after another, and the second scenario is getting stuck on a
find().set
and just hangs. I had to manually kill the process.I was able to reproduce it multiple times when running the two scenarios in same session, but when running individually it works fine. Unfortunately it's proprietary code, so I can't post the reproducible test that I am running.
The text was updated successfully, but these errors were encountered: