Skip to content

Instantly share code, notes, and snippets.

Created March 4, 2010 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/322002 to your computer and use it in GitHub Desktop.
Save anonymous/322002 to your computer and use it in GitHub Desktop.
def wait_for_ajax(timeout=5000)
js_condition = "selenium.browserbot.getCurrentWindow().jQuery.active == 0"
selenium.wait_for_condition(js_condition, timeout)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment