Skip to content

Commit

Permalink
[rb] do not set browser binary in selenium manager if it is an empty …
Browse files Browse the repository at this point in the history
…string (#12738)
  • Loading branch information
titusfortner committed Oct 16, 2023
1 parent fe4bc76 commit 0081a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/common/selenium_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def driver_path(options)
driver_path = output['driver_path']
Platform.assert_executable driver_path

if options.respond_to? :binary
if options.respond_to?(:binary) && browser_path && !browser_path.empty?
options.binary = browser_path
options.browser_version = nil
end
Expand Down

0 comments on commit 0081a5d

Please sign in to comment.