Module: Selenium::WebDriver::PhantomJS
- Defined in:
- lib/selenium/webdriver/phantomjs.rb,
lib/selenium/webdriver/phantomjs/bridge.rb,
lib/selenium/webdriver/phantomjs/service.rb
Defined Under Namespace
Constant Summary collapse
- MISSING_TEXT =
'Unable to find phantomjs executable.'.freeze
Class Method Summary collapse
Class Method Details
.path ⇒ Object
35 36 37 38 39 40 41 42 43 |
# File 'lib/selenium/webdriver/phantomjs.rb', line 35 def self.path @path ||= begin path = Platform.find_binary('phantomjs') raise Error::WebDriverError, MISSING_TEXT unless path Platform.assert_executable path path end end |
.path=(path) ⇒ Object
30 31 32 33 |
# File 'lib/selenium/webdriver/phantomjs.rb', line 30 def self.path=(path) Platform.assert_executable path @path = path end |