From a7e14ddb74b9ffb9beb5fd18257b7d942b03683b Mon Sep 17 00:00:00 2001 From: Luke Hill <20105237+luke-hill@users.noreply.github.com> Date: Wed, 16 Aug 2023 14:07:29 +0100 Subject: [PATCH] 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)