Class: ActionDispatch::SystemTesting::Driver

Inherits:
Object
  • Object
show all
Defined in:
actionpack/lib/action_dispatch/system_testing/driver.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(name, **options, &capabilities) ⇒ Driver

Returns a new instance of Driver.



6
7
8
9
10
11
12
13
14
# File 'actionpack/lib/action_dispatch/system_testing/driver.rb', line 6

def initialize(name, **options, &capabilities)
  @name = name
  @browser = Browser.new(options[:using])
  @screen_size = options[:screen_size]
  @options = options[:options] || {}
  @capabilities = capabilities

  @browser.preload unless name == :rack_test
end

Instance Method Details

#useObject



16
17
18
19
20
# File 'actionpack/lib/action_dispatch/system_testing/driver.rb', line 16

def use
  register if registerable?

  setup
end