Class: SeleniumConnect::Runner::PhantomJS
- Inherits:
-
Object
- Object
- SeleniumConnect::Runner::PhantomJS
- Defined in:
- lib/selenium-connect/runners/phantomjs.rb
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.
6 7 8 |
# File 'lib/selenium-connect/runners/phantomjs.rb', line 6 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object (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
#launch ⇒ Object
14 15 16 |
# File 'lib/selenium-connect/runners/phantomjs.rb', line 14 def launch init_browser end |
#match? ⇒ Boolean
10 11 12 |
# File 'lib/selenium-connect/runners/phantomjs.rb', line 10 def match? config.browser == "phantomjs" end |