Method: Capybara::Node::Simple#text

Defined in:
lib/capybara/node/simple.rb

#text(type = nil) ⇒ String

Returns The text of the element.

Returns:

  • (String)

    The text of the element



31
32
33
# File 'lib/capybara/node/simple.rb', line 31

def text(type=nil)
  native.text
end