Created
December 16, 2011 12:11
-
-
Save jdudek/1485824 to your computer and use it in GitHub Desktop.
wait_for_server in Bbq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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