class Capybara::Node::Document

def text(type = nil)

Returns:
  • (String) - The text of the document
def text(type = nil)
  find(:xpath, '/html').text(type)
end