Skip to content

Instantly share code, notes, and snippets.

@diegorv
Forked from anonymous/selenium_steps.rb
Created March 4, 2010 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegorv/322086 to your computer and use it in GitHub Desktop.
Save diegorv/322086 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