Skip to content

Instantly share code, notes, and snippets.

@nowk
Created September 25, 2011 23:17
Show Gist options
  • Save nowk/1241306 to your computer and use it in GitHub Desktop.
Save nowk/1241306 to your computer and use it in GitHub Desktop.
def wait_for_ajax(timeout = 5) #Timeout in seconds
page.wait_until(timeout) { page.evaluate_script "jQuery.active == 0" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment