Skip to content

Instantly share code, notes, and snippets.

@mikegehard
Created May 4, 2011 00:35
Show Gist options
  • Save mikegehard/954537 to your computer and use it in GitHub Desktop.
Save mikegehard/954537 to your computer and use it in GitHub Desktop.
Waiting until all jquery ajax calls are done
//Useful if you have a slow CI server...
When /^I wait until all Ajax requests are complete$/ do
wait_until do
page.evaluate_script('$.active') == 0
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment