Skip to content

Commit 45fcc05

Browse files
committed
[rb] still need to use driver finder when using capabilities parameter
1 parent 5860546 commit 45fcc05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rb/lib/selenium/webdriver/common/local_driver.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def process_options(options, capabilities, service)
4242
WebDriver.logger.deprecate("The :capabilities parameter for #{self.class}",
4343
":options argument with an instance of #{self.class}",
4444
id: :capabilities)
45+
service.executable_path ||= WebDriver::DriverFinder.path(capabilities, service.class)
4546
generate_capabilities(capabilities)
4647
else
4748
options ||= default_options

0 commit comments

Comments
 (0)