class Capybara::Node::Document

def title

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