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