Skip to content

Commit 0081a5d

Browse files
committed
[rb] do not set browser binary in selenium manager if it is an empty string (#12738)
1 parent fe4bc76 commit 0081a5d

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)