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 15 16 17 |
# 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 if name == :selenium require "selenium/webdriver" @browser.preload end end |
Instance Method Details
#use ⇒ Object
19 20 21 22 23 |
# File 'lib/action_dispatch/system_testing/driver.rb', line 19 def use register if registerable? setup end |