Method: Webrat::Locators::FieldLabeledLocator#text

Defined in:
lib/webrat/core/locators/field_labeled_locator.rb

#text(element) ⇒ Object



35
36
37
38
39
40
41
# File 'lib/webrat/core/locators/field_labeled_locator.rb', line 35

def text(element)
  str = Webrat::XML.all_inner_text(element)
  str.gsub!("\n","")
  str.strip!
  str.squeeze!(" ")
  str
end