Sha256: 21690c650cdb077b83af9959188a850609d5cc34237d7f3d1e563fcc394e2d00
Contents?: true
Size: 691 Bytes
Versions: 28
Compression:
Stored size: 691 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 ## # # @return [String] The title of the document # def title session.driver.title end end end end
Version data entries
28 entries across 24 versions & 3 rubygems