Module Capybara::DSL
In: lib/capybara/dsl.rb

Methods

Public Instance methods

Shortcut to accessing the current session. This is useful when Capybara is included in a class or module.

    class MyClass
      include Capybara::DSL

      def has_header?
        page.has_css?('h1')
      end
    end

@return [Capybara::Session] The current session object

Shortcut to working in a different session. This is useful when Capybara is included in a class or module.

[Validate]