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 15 def inspect %(#<Capybara::Document>) end
text(type = nil)
click to toggle source
@return [String] The text of the document
# File lib/capybara/node/document.rb, line 23 def text(type = nil) find(:xpath, '/html').text(type) end
title()
click to toggle source
@return [String] The title of the document
# File lib/capybara/node/document.rb, line 31 def title session.driver.title end