class Capybara::Node::Document

def text(type = nil, normalize_ws: false)

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