Skip to content

Commit 135ef58

Browse files
titusfortneraguspe
authored andcommitted
[rb] do not set browser binary in selenium manager if it is an empty string (SeleniumHQ#12738)
1 parent dbee90b commit 135ef58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rb/lib/selenium/webdriver/common/selenium_manager.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def driver_path(options)
4545
driver_path = output['driver_path']
4646
Platform.assert_executable driver_path
4747

48-
if options.respond_to? :binary
48+
if options.respond_to?(:binary) && browser_path && !browser_path.empty?
4949
options.binary = browser_path
5050
options.browser_version = nil
5151
end

0 commit comments

Comments
 (0)