From cf5393b05021c36249cd95a117c7636bac49b42f Mon Sep 17 00:00:00 2001 From: Alex Rodionov Date: Thu, 25 Apr 2024 14:17:28 -0700 Subject: [PATCH] [rb] Return and deprecate DriverFinder.path This was accidentally removed in #13386. Fixes #13876. Related to rails/rails#51658. --- rb/lib/selenium/webdriver/common/driver_finder.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rb/lib/selenium/webdriver/common/driver_finder.rb b/rb/lib/selenium/webdriver/common/driver_finder.rb index 3f5aa4a1af648..e300189dcf4e0 100644 --- a/rb/lib/selenium/webdriver/common/driver_finder.rb +++ b/rb/lib/selenium/webdriver/common/driver_finder.rb @@ -20,6 +20,12 @@ module Selenium module WebDriver class DriverFinder + 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 + def initialize(options, service) @options = options @service = service