Method: ActionDispatch::SystemTestCase.driven_by
- Defined in:
- actionpack/lib/action_dispatch/system_test_case.rb
.driven_by(driver, using: :chrome, screen_size: [1400, 1400], options: {}, &capabilities) ⇒ Object
System Test configuration options
The default settings are Selenium, using Chrome, with a screen size of 1400x1400.
Examples:
driven_by :cuprite
driven_by :selenium, screen_size: [800, 800]
driven_by :selenium, using: :chrome
driven_by :selenium, using: :headless_chrome
driven_by :selenium, using: :firefox
driven_by :selenium, using: :headless_firefox
158 159 160 161 162 |
# File 'actionpack/lib/action_dispatch/system_test_case.rb', line 158 def self.driven_by(driver, using: :chrome, screen_size: [1400, 1400], options: {}, &capabilities) = { using: using, screen_size: screen_size, options: } self.driver = SystemTesting::Driver.new(driver, **, &capabilities) end |