Skip to content

Commit

Permalink
[rb] Update deprecation message for local_driver.rb (#12562)
Browse files Browse the repository at this point in the history
Update deprecation message for local_driver.rb

Makes it a little clearer what exactly needs to be replaced and for what
  • Loading branch information
luke-hill committed Aug 16, 2023
1 parent c39c7fb commit 5336d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/common/local_driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5336d62

Please sign in to comment.