Sha256: cec194010e7abeffecb3f3cccfdb96d22e35e491bc522702e44d8bd3bcd36a8b

Contents?: true

Size: 585 Bytes

Versions: 9

Compression:

Stored size: 585 Bytes

Contents

module Watir
  module WaitHelper
    # Wait until block evaluates to true or times out.
    #
    # @example
    #   browser.wait_until(5) { browser.text_field.exists? }
    #
    # @see Wait
    # @see ElementExtensions
    def wait_until(*args, &blk)
      Wait.until(*args, &blk)
    end

    # Wait while block evaluates to true or times out.
    #
    # @example
    #   browser.wait_while(5) { browser.text_field.exists? }
    #
    # @see Wait
    # @see ElementExtensions
    def wait_while(*args, &blk)
      Wait.while(*args, &blk)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
watir-classic-4.3.0 lib/watir-classic/wait_helper.rb
watir-classic-4.2.0 lib/watir-classic/wait_helper.rb
watir-classic-4.1.0 lib/watir-classic/wait_helper.rb
watir-classic-4.0.1 lib/watir-classic/wait_helper.rb
watir-classic-4.0.0 lib/watir-classic/wait_helper.rb
watir-classic-3.7.0 lib/watir-classic/wait_helper.rb
watir-classic-3.6.0 lib/watir-classic/wait_helper.rb
watir-classic-3.5.0 lib/watir-classic/wait_helper.rb
watir-classic-3.4.0 lib/watir-classic/wait_helper.rb