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 3dff99e42081f..15787b2b5235d 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 = 'java/src/org/openqa/selenium/grid/selenium_server_deploy.jar' + jar = 'selenium_server_deploy.jar' test_jar = Pathname.new(Dir.pwd).join(jar) - built_jar = root.join("bazel-bin/#{jar}") + built_jar = root.join("bazel-bin/java/src/org/openqa/selenium/grid/#{jar}") jar = if File.exist?(test_jar) && ENV['DOWNLOAD_SERVER'].nil? test_jar elsif File.exist?(built_jar) && ENV['DOWNLOAD_SERVER'].nil?