Sha256: caeaba08f09b8f5236cb5e88db10a0e760ac34920ba0de5cc118b94dbd99fd47

Contents?: true

Size: 582 Bytes

Versions: 16

Compression:

Stored size: 582 Bytes

Contents

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

16 entries across 16 versions & 4 rubygems

Version Path
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/capybara-2.4.4/lib/capybara/node/document.rb
capybara-2.6.2 lib/capybara/node/document.rb
capybara-2.6.1 lib/capybara/node/document.rb
capybara-2.6.0 lib/capybara/node/document.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/capybara-2.4.4/lib/capybara/node/document.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/capybara-2.4.4/lib/capybara/node/document.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/capybara-2.4.4/lib/capybara/node/document.rb
capybara-2.5.0 lib/capybara/node/document.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/capybara-2.4.4/lib/capybara/node/document.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/capybara-2.4.4/lib/capybara/node/document.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/capybara-2.4.4/lib/capybara/node/document.rb
capybara-2.4.4 lib/capybara/node/document.rb
capybara-2.4.3 lib/capybara/node/document.rb
capybara-2.4.2 lib/capybara/node/document.rb
capybara-2.4.1 lib/capybara/node/document.rb
capybara-2.4.0 lib/capybara/node/document.rb