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 evaluate_script(*args)

def evaluate_script(*args)
  find(:xpath, '/html').evaluate_script(*args)
end

def execute_script(*args)

def execute_script(*args)
  find(:xpath, '/html').execute_script(*args)
end

def inspect

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

def scroll_to(*args, quirks: false, **options)

def scroll_to(*args, quirks: false, **options)
  find(:xpath, quirks ? '//body' : '/html').scroll_to(*args, **options)
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