class Capybara::Node::Document


@see Capybara::Node
performed on it will be performed on the entire document.
A {Capybara::Document} represents an HTML document. Any operation
#

def inspect

def inspect
  %(#<Capybara::Document>)
end

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

def title

Returns:
  • (String) - The title of the document
def title
  session.driver.title
end