class Watir::Input

Public Instance Methods

label() click to toggle source

Returns label element associated with Input element.

@return [Watir::Label]

# File lib/watir/elements/input.rb, line 9
def label
  parent(tag_name: 'form').label(for: id)
end