Method: ActionDispatch::SystemTesting::Browser#preload
- Defined in:
- actionpack/lib/action_dispatch/system_testing/browser.rb
#preload ⇒ Object
driver_path is lazily initialized by default. Eagerly set it to avoid race conditions when using parallel tests.
41 42 43 44 45 46 47 48 |
# File 'actionpack/lib/action_dispatch/system_testing/browser.rb', line 41 def preload case type when :chrome resolve_driver_path(::Selenium::WebDriver::Chrome) when :firefox resolve_driver_path(::Selenium::WebDriver::Firefox) end end |