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