Method: Celerity::TextField#value

Defined in:
lib/celerity/elements/text_field.rb

#valueObject Also known as: get_contents, getContents

Returns the text in the text field.



63
64
65
66
67
68
69
70
71
# File 'lib/celerity/elements/text_field.rb', line 63

def value
  assert_exists
  case @object.getTagName
  when 'textarea'
    @object.getText
  when 'input'
    @object.getValueAttribute
  end
end