From 59b8f23033b39b5934e42e64257af82fddcaf1e8 Mon Sep 17 00:00:00 2001 From: titusfortner Date: Sat, 25 Nov 2023 14:02:04 -0600 Subject: [PATCH] [rb] convert binary locations for cygwin fixes #12618 --- rb/lib/selenium/webdriver/common/selenium_manager.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rb/lib/selenium/webdriver/common/selenium_manager.rb b/rb/lib/selenium/webdriver/common/selenium_manager.rb index 202b8d6a98a1e..91a20ee7bfd50 100644 --- a/rb/lib/selenium/webdriver/common/selenium_manager.rb +++ b/rb/lib/selenium/webdriver/common/selenium_manager.rb @@ -41,8 +41,8 @@ def driver_path(options) output = run(*command) - browser_path = output['browser_path'] - driver_path = output['driver_path'] + browser_path = Platform.cygwin? ? Platform.cygwin_path(output['browser_path']) : output['browser_path'] + driver_path = Platform.cygwin? ? Platform.cygwin_path(output['driver_path']) : output['driver_path'] Platform.assert_executable driver_path if options.respond_to?(:binary) && browser_path && !browser_path.empty?