Class: SeleniumConnect::Runner::Chrome

Inherits:
Object
  • Object
show all
Defined in:
lib/selenium-connect/runners/chrome.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Chrome

Returns a new instance of Chrome.



6
7
8
# File 'lib/selenium-connect/runners/chrome.rb', line 6

def initialize(config)
  @config = config
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



4
5
6
# File 'lib/selenium-connect/runners/chrome.rb', line 4

def config
  @config
end

Instance Method Details

#launchObject



14
15
16
# File 'lib/selenium-connect/runners/chrome.rb', line 14

def launch
  init_browser
end

#match?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/selenium-connect/runners/chrome.rb', line 10

def match?
  config.browser == "chrome"
end