From 5cfaef56348b04032d75cdd3f23f4c3dda21c495 Mon Sep 17 00:00:00 2001 From: titusfortner Date: Fri, 6 Oct 2023 20:57:09 -0500 Subject: [PATCH] Revert "[rb] make it easier in ruby remote tests to specify a grid jar" This broke running remote tests on Windows This reverts commit 2e5cec5da5629e6f422f79edd5a457fd772bd286. --- .../selenium/webdriver/spec_support/test_environment.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb b/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb index 15787b2b5235d..3dff99e42081f 100644 --- a/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb +++ b/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb @@ -106,9 +106,9 @@ def remote_server? end def remote_server_jar - jar = 'selenium_server_deploy.jar' + jar = 'java/src/org/openqa/selenium/grid/selenium_server_deploy.jar' test_jar = Pathname.new(Dir.pwd).join(jar) - built_jar = root.join("bazel-bin/java/src/org/openqa/selenium/grid/#{jar}") + built_jar = root.join("bazel-bin/#{jar}") jar = if File.exist?(test_jar) && ENV['DOWNLOAD_SERVER'].nil? test_jar elsif File.exist?(built_jar) && ENV['DOWNLOAD_SERVER'].nil?