Skip to content

Commit cf5393b

Browse files
committed
[rb] Return and deprecate DriverFinder.path
This was accidentally removed in #13386. Fixes #13876. Related to rails/rails#51658.
1 parent dbd9ff3 commit cf5393b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rb/lib/selenium/webdriver/common/driver_finder.rb

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
module Selenium
2121
module WebDriver
2222
class DriverFinder
23+
def self.path(options, service_class)
24+
WebDriver.logger.deprecate('DriverFinder.path(options, service_class)',
25+
'DriverFinder.new(options, service).driver_path')
26+
new(options, service_class.new).driver_path
27+
end
28+
2329
def initialize(options, service)
2430
@options = options
2531
@service = service

0 commit comments

Comments
 (0)