Skip to content

Instantly share code, notes, and snippets.

@wulftone
Forked from mikegehard/gist:954537
Created January 7, 2012 01:49
Show Gist options
  • Save wulftone/1573449 to your computer and use it in GitHub Desktop.
Save wulftone/1573449 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