diff --git a/actionpack/lib/action_dispatch/system_testing/driver.rb b/actionpack/lib/action_dispatch/system_testing/driver.rb index 20979ac2286..6389ffa3389 100644 --- a/actionpack/lib/action_dispatch/system_testing/driver.rb +++ b/actionpack/lib/action_dispatch/system_testing/driver.rb @@ -18,7 +18,7 @@ module ActionDispatch 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