lib/watir/elements/input.rb

Summary

Maintainability
A
0 mins
Test Coverage
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