Class: ActionDispatch::SystemTesting::Driver
- Inherits:
-
Object
- Object
- ActionDispatch::SystemTesting::Driver
- Defined in:
- lib/action_dispatch/system_testing/driver.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(name, **options, &capabilities) ⇒ Driver
constructor
A new instance of Driver.
- #use ⇒ Object
Constructor Details
#initialize(name, **options, &capabilities) ⇒ Driver
Returns a new instance of Driver.
6 7 8 9 10 11 12 13 14 |
# File 'lib/action_dispatch/system_testing/driver.rb', line 6 def initialize(name, **, &capabilities) @name = name @browser = Browser.new([:using]) @screen_size = [:screen_size] @options = [:options] @capabilities = capabilities @browser.preload end |
Instance Method Details
#use ⇒ Object
16 17 18 19 20 |
# File 'lib/action_dispatch/system_testing/driver.rb', line 16 def use register if registerable? setup end |