Module: ActionPauser

Defined in:
lib/capybara/selenium/patches/action_pauser.rb

Instance Method Summary collapse

Instance Method Details

#initialize(mouse, keyboard) ⇒ Object


4
5
6
7
# File 'lib/capybara/selenium/patches/action_pauser.rb', line 4

def initialize(mouse, keyboard)
  super
  @devices[:pauser] = Pauser.new
end

#pause(duration) ⇒ Object


9
10
11
12
# File 'lib/capybara/selenium/patches/action_pauser.rb', line 9

def pause(duration)
  @actions << [:pauser, :pause, [duration]]
  self
end