Module: Browsenator::Remote::Browserstack

Defined in:
lib/browsenator/remote/browserstack.rb,
lib/browsenator/remote/browserstack/ie.rb,
lib/browsenator/remote/browserstack/edge.rb,
lib/browsenator/remote/browserstack/chrome.rb,
lib/browsenator/remote/browserstack/safari.rb,
lib/browsenator/remote/browserstack/screen_size.rb

Defined Under Namespace

Modules: ScreenSize Classes: Chrome, Edge, IE, Safari

Class Method Summary collapse

Class Method Details

.for(browser, opts = {}) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/browsenator/remote/browserstack.rb', line 9

def self.for(browser, opts = {})
  case browser
  when :chrome
    Chrome.new(opts).open
  when :safari
    Safari.new(opts).open
  when :edge
    Edge.new(opts).open
  when :ie
    IE.new(opts).open
  else
    raise ArgumentError, "Unknown Browserstack browser: #{browser.inspect}"
  end
end