Skip to content

Instantly share code, notes, and snippets.

@jdudek
Created December 16, 2011 12:11
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 jdudek/1485824 to your computer and use it in GitHub Desktop.
Save jdudek/1485824 to your computer and use it in GitHub Desktop.
wait_for_server in Bbq
class TestUser
def wait(seconds)
sleep seconds.to_i
end
def wait_for_server(timeout = 10.seconds)
page.wait_until(timeout.to_i) do
page.evaluate_script 'jQuery.active == 0'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment