# File lib/culerity/remote_browser_proxy.rb, line 18 def wait_until time_to_wait=30, &block time_limit = Time.now + time_to_wait until block.call if Time.now > time_limit raise "wait_until timeout after #{time_to_wait} seconds" end sleep 0.1 end true end