From 77f0cfae989c45ef18f9c5726fb773e434e05eeb Mon Sep 17 00:00:00 2001 From: titusfortner Date: Sun, 4 Dec 2022 15:43:53 -0600 Subject: [PATCH] [rb] start logger in tests before starting first driver --- rb/spec/integration/selenium/webdriver/spec_helper.rb | 1 - .../selenium/webdriver/spec_support/test_environment.rb | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/rb/spec/integration/selenium/webdriver/spec_helper.rb b/rb/spec/integration/selenium/webdriver/spec_helper.rb index 41b3a72a0935d..1afb82080c102 100644 --- a/rb/spec/integration/selenium/webdriver/spec_helper.rb +++ b/rb/spec/integration/selenium/webdriver/spec_helper.rb @@ -37,7 +37,6 @@ c.include(WebDriver::SpecSupport::Helpers) c.before(:suite) do - WebDriver.logger GlobalTestEnv.remote_server.start if GlobalTestEnv.driver == :remote && ENV['WD_REMOTE_URL'].nil? GlobalTestEnv.print_env end 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 bcdc8f9f12134..29e29bd35ad04 100644 --- a/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb +++ b/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb @@ -28,6 +28,7 @@ def initialize @create_driver_error_count = 0 populate_from_bazel_target + WebDriver.logger @driver = ENV.fetch('WD_SPEC_DRIVER', :chrome).to_sym @driver_instance = nil