Skip to content

Commit

Permalink
[rb] Return and deprecate DriverFinder.path
Browse files Browse the repository at this point in the history
This was accidentally removed in #13386.
Fixes #13876.
Related to rails/rails#51658.
  • Loading branch information
p0deje committed Apr 26, 2024
1 parent dbd9ff3 commit cf5393b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rb/lib/selenium/webdriver/common/driver_finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf5393b

Please sign in to comment.