class Watir::Button
Class representing button elements.
This class covers both <button> and <input type=“submit|reset|image|button” /> elements.
Constants
- VALID_TYPES
Public Instance Methods
text()
click to toggle source
Returns the text of the button.
For input elements, returns the “value” attribute. For button elements, returns the inner text.
@return [String]
Calls superclass method
# File lib/watir/elements/button.rb, line 22 def text tag_name == 'input' ? value : super end