-
-
Save wulftone/1573449 to your computer and use it in GitHub Desktop.
Waiting until all jquery ajax calls are done
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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