Parent

Methods

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 12
def inspect
  %(#<Capybara::Document>)
end
text() click to toggle source

@return [String] The text of the document

# File lib/capybara/node/document.rb, line 20
def text
  find(:xpath, '/html').text
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.