class ActionDispatch::SystemTesting::Browser
def preload
update the webdriver once and avoid race conditions when using
proc to update web drivers. Running this proc early allows us to only
driver_path can be configured as a proc. The webdrivers gem uses this
def preload case type when :chrome ::Selenium::WebDriver::Chrome::Service.driver_path&.call when :firefox ::Selenium::WebDriver::Firefox::Service.driver_path&.call end end