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 included(base)
def included(base) warn 'including Capybara::DSL in the global scope is not recommended!' if base == Object if defined?(::RSpec::Matchers) && base.include?(::RSpec::Matchers) base.send(:include, ::Capybara::RSpecMatcherProxies) end super end
def page
-
(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