Skip to content

Instantly share code, notes, and snippets.

@jdudek jdudek/gist:1485824
Created Dec 16, 2011

Embed
What would you like to do?
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
You can’t perform that action at this time.