A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.rubydoc.info/github/teamcapybara/capybara/Capybara/DSL below:

DSL – Documentation for teamcapybara/capybara (master) – RubyDoc.info

Module: Capybara::DSL Overview Class Method Summary collapse Instance Method Summary collapse Methods included from DSLRSpecProxyInstaller

prepended

Class Method Details .extended(base) ⇒ Object
12
13
14
15
# File 'lib/capybara/dsl.rb', line 12

def self.extended(base)
  warn 'extending the main object with Capybara::DSL is not recommended!' if base == TOPLEVEL_BINDING.eval('self')
  super
end
.included(base) ⇒ Object
7
8
9
10
# File 'lib/capybara/dsl.rb', line 7

def self.included(base)
  warn 'including Capybara::DSL in the global scope is not recommended!' if base == Object
  super
end
Instance Method Details #using_session(name_or_session, &block) ⇒ Object

Shortcut to working in a different session.

21
22
23
# File 'lib/capybara/dsl.rb', line 21

def using_session(name_or_session, &block)
  Capybara.using_session(name_or_session, &block)
end
#using_wait_time(seconds, &block) ⇒ Object

Shortcut to using a different wait time.

27
28
29
# File 'lib/capybara/dsl.rb', line 27

def using_wait_time(seconds, &block)
  page.using_wait_time(seconds, &block)
end

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4