Created
July 18, 2011 13:08
-
-
Save skanev/1089453 to your computer and use it in GitHub Desktop.
wait_for_ajax_to_complete cuke helper
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
module WaitForAjaxToComplete | |
def wait_for_ajax_to_complete | |
wait_until { page.evaluate_script('$.active') == 0 } | |
end | |
end | |
World(WaitForAjaxToComplete) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment