Sha256: 083877bdc497c445c1bb0585212ccb9ea15b3b0cf3485fe676510f42d98d8a30

Contents?: true

Size: 526 Bytes

Versions: 7

Compression:

Stored size: 526 Bytes

Contents

module Watir
  module Container
    include JSSnippets

    #
    # Returns element.
    #
    # @example
    #   browser.element(data_bind: 'func')
    #
    # @return [HTMLElement]
    #

    def element(opts = {})
      HTMLElement.new(self, opts)
    end

    #
    # Returns element collection.
    #
    # @example
    #   browser.elements(data_bind: 'func')
    #
    # @return [HTMLElementCollection]
    #

    def elements(opts = {})
      HTMLElementCollection.new(self, opts)
    end
  end # Container
end # Watir

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
watir-7.1.0 lib/watir/container.rb
watir-7.0.0 lib/watir/container.rb
watir-7.0.0.beta5 lib/watir/container.rb
watir-7.0.0.beta4 lib/watir/container.rb
watir-7.0.0.beta3 lib/watir/container.rb
watir-7.0.0.beta2 lib/watir/container.rb
watir-7.0.0.beta1 lib/watir/container.rb