class method self.driven_by

Ruby on Rails 5.1.7

Since v5.1.7

Available in: v5.1.7 v5.2.8.1 v6.0.6.1 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3.2 v8.0.5.1 v8.1.3.1 edge

Signature

self.driven_by(driver, using: :chrome, screen_size: [1400, 1400], options: {})

System Test configuration options

The default settings are Selenium, using Chrome, with a screen size of 1400x1400.

Examples:

driven_by :poltergeist

driven_by :selenium, using: :firefox

driven_by :selenium, screen_size: [800, 800]

Parameters

driver req
using key = :chrome
screen_size key = [1400
1400] req
options key = {}
Source
# File actionpack/lib/action_dispatch/system_test_case.rb, line 123
    def self.driven_by(driver, using: :chrome, screen_size: [1400, 1400], options: {})
      self.driver = SystemTesting::Driver.new(driver, using: using, screen_size: screen_size, options: options)
    end

Defined in actionpack/lib/action_dispatch/system_test_case.rb line 123 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::SystemTestCase

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close