From ce910c72da8a2b17d4046c2f1d962ad452811f5e Mon Sep 17 00:00:00 2001 From: Noah Horton Date: Wed, 3 Apr 2024 13:06:50 -0600 Subject: [PATCH] Don't preload Selenium browser when remote --- actionpack/lib/action_dispatch/system_testing/driver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_dispatch/system_testing/driver.rb b/actionpack/lib/action_dispatch/system_testing/driver.rb index 20979ac22868a..6389ffa3389e5 100644 --- a/actionpack/lib/action_dispatch/system_testing/driver.rb +++ b/actionpack/lib/action_dispatch/system_testing/driver.rb @@ -18,7 +18,7 @@ def initialize(driver_type, **options, &capabilities) gem "selenium-webdriver", ">= 4.0.0" require "selenium/webdriver" @browser = Browser.new(options[:using]) - @browser.preload + @browser.preload unless @options[:browser] == :remote else @browser = nil end