Sha256: a9814d91c8090073d09decdcd9b56156a5b2f73095ec52cf9cbfd6fd57e1ed42
Contents?: true
Size: 563 Bytes
Versions: 19
Compression:
Stored size: 563 Bytes
Contents
module Watir # # Class representing button elements. # # This class covers both <button> and <input type="submit|reset|image|button" /> elements. # class Button < HTMLElement inherit_attributes_from Input VALID_TYPES = %w[button reset submit image].freeze # # Returns the text of the button. # # For input elements, returns the "value" attribute. # For button elements, returns the inner text. # # @return [String] # def text tag_name == 'input' ? value : super end end # Button end # Watir
Version data entries
19 entries across 19 versions & 1 rubygems