Class: Selenium::WebDriver::DriverFinder

Inherits:
Object
  • Object
show all
Defined in:
rb/lib/selenium/webdriver/common/driver_finder.rb

Class Method Summary collapse

Instance Method Summary collapse

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(options, service)
  @options = 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(options, service_class)
  WebDriver.logger.deprecate('DriverFinder.path(options, service_class)',
                             'DriverFinder.new(options, service).driver_path')
  new(options, service_class.new).driver_path
end

Instance Method Details

#browser_pathObject



34
35
36
# File 'rb/lib/selenium/webdriver/common/driver_finder.rb', line 34

def browser_path
  paths[:browser_path]
end

#browser_path?Boolean

Returns:

  • (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_pathObject



38
39
40
# File 'rb/lib/selenium/webdriver/common/driver_finder.rb', line 38

def driver_path
  paths[:driver_path]
end