From 5336d6263a5fdf9b63cfa12b5c385ab7a741eb22 Mon Sep 17 00:00:00 2001 From: Luke Hill <20105237+luke-hill@users.noreply.github.com> Date: Wed, 16 Aug 2023 15:02:57 +0100 Subject: [PATCH] [rb] Update deprecation message for `local_driver.rb` (#12562) Update deprecation message for local_driver.rb Makes it a little clearer what exactly needs to be replaced and for what --- rb/lib/selenium/webdriver/common/local_driver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rb/lib/selenium/webdriver/common/local_driver.rb b/rb/lib/selenium/webdriver/common/local_driver.rb index 22f091a5ab6d2..79f22afc9d62f 100644 --- a/rb/lib/selenium/webdriver/common/local_driver.rb +++ b/rb/lib/selenium/webdriver/common/local_driver.rb @@ -40,7 +40,7 @@ def process_options(options, capabilities, service) raise ArgumentError, ":options must be an instance of #{default_options.class}" elsif capabilities WebDriver.logger.deprecate("The :capabilities parameter for #{self.class}", - ":options argument with an instance of #{self.class}", + "an :options parameter instead to create a local #{self.class}", id: :capabilities) service.executable_path ||= WebDriver::DriverFinder.path(capabilities, service.class) generate_capabilities(capabilities)