Class: SeleniumConnect::Runner::PhantomJS

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ PhantomJS

Returns a new instance of PhantomJS.



6
7
8
# File 'lib/selenium-connect/runners/phantomjs.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/phantomjs.rb', line 4

def config
  @config
end

Instance Method Details

#launchObject



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

def launch
  init_browser
end

#match?Boolean

Returns:

  • (Boolean)


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

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