Class: Selenium::WebDriver::DriverFinder
- Inherits:
-
Object
- Object
- Selenium::WebDriver::DriverFinder
- Defined in:
- rb/lib/selenium/webdriver/common/driver_finder.rb
Class Method Summary collapse
Instance Method Summary collapse
- #browser_path ⇒ Object
- #browser_path? ⇒ Boolean
- #driver_path ⇒ Object
-
#initialize(options, service) ⇒ DriverFinder
constructor
A new instance of DriverFinder.
Constructor Details
#initialize(options, service) ⇒ DriverFinder
Returns a new instance of DriverFinder.
29 30 31 32 |
# File 'rb/lib/selenium/webdriver/common/driver_finder.rb', line 29 def initialize(, service) @options = @service = service end |
Class Method Details
.path(options, service_class) ⇒ Object
23 24 25 26 27 |
# File 'rb/lib/selenium/webdriver/common/driver_finder.rb', line 23 def self.path(, service_class) WebDriver.logger.deprecate('DriverFinder.path(options, service_class)', 'DriverFinder.new(options, service).driver_path') new(, service_class.new).driver_path end |
Instance Method Details
#browser_path ⇒ Object
34 35 36 |
# File 'rb/lib/selenium/webdriver/common/driver_finder.rb', line 34 def browser_path paths[:browser_path] end |
#browser_path? ⇒ Boolean
42 43 44 |
# File 'rb/lib/selenium/webdriver/common/driver_finder.rb', line 42 def browser_path? !browser_path.nil? && !browser_path.empty? end |
#driver_path ⇒ Object
38 39 40 |
# File 'rb/lib/selenium/webdriver/common/driver_finder.rb', line 38 def driver_path paths[:driver_path] end |