Sha256: 71d481dedb896c95a3506c50615c2ed2a20e760ac159064247f5dca83a5e541b
Contents?: true
Size: 612 Bytes
Versions: 13
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true module Capybara module Node ## # # A {Capybara::Document} represents an HTML document. Any operation # performed on it will be performed on the entire document. # # @see Capybara::Node # class Document < Base include Capybara::Node::DocumentMatchers def inspect %(#<Capybara::Document>) end ## # # @return [String] The text of the document # def text(type=nil) find(:xpath, '/html').text(type) end def title session.driver.title end end end end
Version data entries
13 entries across 13 versions & 3 rubygems