class Capybara::Node::Document
A {Capybara::Document} represents an HTML document. Any operation performed on it will be performed on the entire document.
@see Capybara::Node
Public Instance Methods
inspect()
click to toggle source
# File lib/capybara/node/document.rb, line 14 def inspect %(#<Capybara::Document>) end
text(type = nil, normalize_ws: false)
click to toggle source
@return [String] The text of the document
# File lib/capybara/node/document.rb, line 22 def text(type = nil, normalize_ws: false) find(:xpath, '/html').text(type, normalize_ws: normalize_ws) end
title()
click to toggle source
@return [String] The title of the document
# File lib/capybara/node/document.rb, line 30 def title session.driver.title end