Class: ActionDispatch::SystemTesting::Driver

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(name, **options) ⇒ Driver

Returns a new instance of Driver.



4
5
6
7
8
9
# File 'lib/action_dispatch/system_testing/driver.rb', line 4

def initialize(name, **options)
  @name = name
  @browser = options[:using]
  @screen_size = options[:screen_size]
  @options = options[:options]
end

Instance Method Details

#useObject



11
12
13
14
# File 'lib/action_dispatch/system_testing/driver.rb', line 11

def use
  register if selenium?
  setup
end