Method: Celerity::Element#text

Defined in:
lib/celerity/element.rb

#textString Also known as: innerText, inner_text

Return a text representation of the element as it would appear in a browser.

Returns:

  • (String)

See Also:



187
188
189
190
# File 'lib/celerity/element.rb', line 187

def text
  assert_exists
  @object.asText.strip # this must behave like ElementLocator
end