Skip to content

Instantly share code, notes, and snippets.

@aratak
Created August 23, 2013 12:52
Show Gist options
  • Save aratak/6319005 to your computer and use it in GitHub Desktop.
Save aratak/6319005 to your computer and use it in GitHub Desktop.
When I wait for the ajax request to finish
When /^I wait for the ajax request to finish$/ do
until page.evaluate_script('jQuery.isReady&&jQuery.active==0') do
sleep 0.05
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment