Class: SeleniumConnect::Runner::PhantomJS

Inherits:
Object
  • Object
show all
Defined in:
lib/selenium_connect/runners/phantomjs.rb

Overview

PhantomJS browser runner

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ PhantomJS

Returns a new instance of PhantomJS.



10
11
12
# File 'lib/selenium_connect/runners/phantomjs.rb', line 10

def initialize(config)
  @config = config
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



8
9
10
# File 'lib/selenium_connect/runners/phantomjs.rb', line 8

def config
  @config
end

Instance Method Details

#launchObject



18
19
20
# File 'lib/selenium_connect/runners/phantomjs.rb', line 18

def launch
  init_browser
end

#match?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/selenium_connect/runners/phantomjs.rb', line 14

def match?
  config.browser == 'phantomjs'
end