Skip to content

Instantly share code, notes, and snippets.

@skanev
Created July 18, 2011 13:08
Show Gist options
  • Save skanev/1089453 to your computer and use it in GitHub Desktop.
Save skanev/1089453 to your computer and use it in GitHub Desktop.
wait_for_ajax_to_complete cuke helper
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