From a66db94fdf32d2cd2e3dbcc44488da71d56b6a04 Mon Sep 17 00:00:00 2001 From: Alex Rodionov Date: Mon, 11 Mar 2024 08:12:04 -0700 Subject: [PATCH] [rb] Avoid overescaping browser path Related to #13632 --- rb/lib/selenium/webdriver/common/selenium_manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rb/lib/selenium/webdriver/common/selenium_manager.rb b/rb/lib/selenium/webdriver/common/selenium_manager.rb index 967a18c93d35d..d2d217aebb6f4 100644 --- a/rb/lib/selenium/webdriver/common/selenium_manager.rb +++ b/rb/lib/selenium/webdriver/common/selenium_manager.rb @@ -63,7 +63,7 @@ def generate_command(binary, options) end if options.respond_to?(:binary) && !options.binary.nil? command << '--browser-path' - command << options.binary.gsub('\\', '\\\\\\') + command << options.binary.squeeze('\\').gsub('\\', '\\\\\\') end if options.proxy command << '--proxy'