Class: Selenium::WebDriver::DriverFinder

Inherits:
Object
  • Object
show all
Defined in:
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.

Parameters:

  • options (Options, nil)

    when nil driver parsed from Service::EXECUTABLE

  • service (Service)


31
32
33
34
# File 'lib/selenium/webdriver/common/driver_finder.rb', line 31

def initialize(options, service)
  @options = options
  @service = service
end

Class Method Details

.path(options, service_class) ⇒ Object



23
24
25
26
27
# File '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



36
37
38
# File 'lib/selenium/webdriver/common/driver_finder.rb', line 36

def browser_path
  paths[:browser_path]
end

#browser_path?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/selenium/webdriver/common/driver_finder.rb', line 44

def browser_path?
  !browser_path.nil? && !browser_path.empty?
end

#driver_pathObject



40
41
42
# File 'lib/selenium/webdriver/common/driver_finder.rb', line 40

def driver_path
  paths[:driver_path]
end