Created
August 23, 2013 12:52
-
-
Save aratak/6319005 to your computer and use it in GitHub Desktop.
When I wait for the ajax request to finish
This file contains hidden or 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
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