Skip to content

Instantly share code, notes, and snippets.

@biscuitvile
Created August 2, 2013 19:01
Show Gist options
  • Select an option

  • Save biscuitvile/6142454 to your computer and use it in GitHub Desktop.

Select an option

Save biscuitvile/6142454 to your computer and use it in GitHub Desktop.
When capybara just won't wait with have_css, find, etc
until page.evaluate_script("$('section#receipt').length === 1;") == true do
sleep (0.1)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment