Module: Hollandaise::Browser

Defined in:
lib/hollandaise/browser.rb,
lib/hollandaise/browser/base.rb,
lib/hollandaise/browser/sauce.rb,
lib/hollandaise/browser/selenium.rb

Defined Under Namespace

Classes: Base, Sauce, Selenium

Class Method Summary collapse

Class Method Details

.for(browser, options) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/hollandaise/browser.rb', line 7

def self.for(browser, options)
  browser = browser.dup

  case browser.shift
  when :sauce
    Hollandaise::Browser::Sauce.new(*browser, options)
  when :selenium
    Hollandaise::Browser::Selenium.new(*browser, options)
  end
end