module Capybara::DSL

def self.extended(base)

def self.extended(base)
  warn 'extending the main object with Capybara::DSL is not recommended!' if base == TOPLEVEL_BINDING.eval('self')
  super
end

def self.included(base)

def self.included(base)
  warn 'including Capybara::DSL in the global scope is not recommended!' if base == Object
  super
end

def page

Returns:
  • (Capybara::Session) - The current session object
def page
  Capybara.current_session
end

def using_session(name_or_session, &block)


Shortcut to working in a different session.

#
def using_session(name_or_session, &block)
  Capybara.using_session(name_or_session, &block)
end

def using_wait_time(seconds, &block)


Shortcut to using a different wait time.
def using_wait_time(seconds, &block)
  page.using_wait_time(seconds, &block)
end