Class: Watir::TextArea

Inherits:
Object
  • Object
show all
Defined in:
lib/watir-formhandler/text_area.rb

Overview

Extends the Watir::TextArea class to add #field_value.

Instance Method Summary collapse

Instance Method Details

#field_valueString

Returns the text currently set in this TextField

Returns:

  • (String)

    the current text in the field. If the field is not set at all, it will return and empty string.



8
9
10
# File 'lib/watir-formhandler/text_area.rb', line 8

def field_value
  value || ''
end