-
-
Notifications
You must be signed in to change notification settings - Fork 426
page.body returning an integer string #957
Comments
I think I narrowed it down further to some interaction with
Is this method kind of unstable? Is there a better way to do this? |
@lukegrecki Rather than using execute_script that method should just be written as |
@twalpole Thanks! That seemed to be the cause of the the broken pipe errors I was seeing earlier and I also don't think I've seen the errors I mentioned above since. I am experimenting with waiting for all the css data elements I want to do assertions on instead of depending on |
Nevermind, I'm still basically where I started. There was a set of requests I was ignoring with puffing-billy but after mocking them I'm consistently getting a broken pipe error:
To give a little more context I'm stubbing about 8 requests total and these may be coming in rather fast. The first set of 4 requests are options requests, and the second set of 4 requests have the same urls as the first but are get requests asking for data. I know puffing-billy doesn't parallelize the processing of mock requests. Could too many ajax requests coming into capybara-webkit + puffing-billy cause a crash? Any ideas how to work around this? |
This turned out to be an issue locally for me (still unsolved) but it passes locally consistently for someone else on the team. |
I am currently using capybara-webkit (1.11.1) with puffing_billy (0.8.0) to make mock requests from javascript, and am intermittently running into the following error:
When I added a
puts page.body
or triedsave_and_open_page
I found thatpage.body
was returning an integer string such as"5"
. When I look at the screenshot generated from the failure it shows the page mostly rendered with data from the mock request (including the linkSummary View
that the assertion is on).I occasionally get another error:
Any help or direction to fix this would be greatly appreciated.
The text was updated successfully, but these errors were encountered: