A {Capybara::Document} represents an HTML document. Any operation performed on it will be performed on the entire document.
@see Capybara::Node
# File lib/capybara/node/document.rb, line 12 def inspect %Q(#<Capybara::Document>) end
@return [String] The text of the document
# File lib/capybara/node/document.rb, line 20 def text(type=nil) find(:xpath, '/html').text(type) end
# File lib/capybara/node/document.rb, line 24 def title session.driver.title end