Sha256: 780613a98d2cb0c56628682c5f538f418780952eceef2a57928b65d903bd4f5f

Contents?: true

Size: 273 Bytes

Versions: 4

Compression:

Stored size: 273 Bytes

Contents

# frozen_string_literal: true

module Watir
  class Input < HTMLElement
    #
    # Returns label element associated with Input element.
    #
    # @return [Watir::Label]
    #

    def label
      parent(tag_name: 'form').label(for: id)
    end
  end # Input
end # Watir

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
watir-7.3.0 lib/watir/elements/input.rb
watir-7.2.2 lib/watir/elements/input.rb
watir-7.2.1 lib/watir/elements/input.rb
watir-7.2.0 lib/watir/elements/input.rb