Class: SeleniumConnect::Runner::PhantomJS
- Inherits:
-
Object
- Object
- SeleniumConnect::Runner::PhantomJS
- Defined in:
- lib/selenium_connect/runners/phantomjs.rb
Overview
PhantomJS browser runner
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(config) ⇒ PhantomJS
constructor
A new instance of PhantomJS.
- #launch ⇒ Object
- #match? ⇒ Boolean
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
#config ⇒ Object (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
#launch ⇒ Object
18 19 20 |
# File 'lib/selenium_connect/runners/phantomjs.rb', line 18 def launch init_browser end |
#match? ⇒ Boolean
14 15 16 |
# File 'lib/selenium_connect/runners/phantomjs.rb', line 14 def match? config.browser == 'phantomjs' end |