Module: Waterpig

Defined in:
lib/waterpig.rb,
lib/waterpig/snap-step.rb,
lib/waterpig/browser-size.rb,
lib/waterpig/browser-tools.rb,
lib/waterpig/tinymce-tools.rb,
lib/waterpig/ckeditor-tools.rb,
lib/waterpig/warning-suppressor.rb,
lib/waterpig/browser-integration.rb,
lib/waterpig/deadbeat-connections.rb,
lib/waterpig/save-and-open-on-fail.rb,
lib/waterpig/browser-console-logger.rb,
lib/waterpig/request-wait-middleware.rb

Defined Under Namespace

Modules: AutoSnap, BrowserSize, BrowserTools, CKEditorTools, ExampleLogger, SaveAndOpenOnFail, SnapStep, TinyMCETools Classes: BrowserConsoleLogger, DeadbeatConnectionRelease, RequestWaitMiddleware, WarningSuppressor

Class Method Summary collapse

Class Method Details

.pick_capybara_driver(configured) ⇒ Object


17
18
19
20
21
22
# File 'lib/waterpig/browser-integration.rb', line 17

def self.pick_capybara_driver(configured)
  return configured.to_sym if configured
  [:poltergeist_debug, :selenium_chrome].each do |candidate|
    return candidate if Capybara.drivers.has_key? candidate
  end
end