class Selenium::WebDriver::Interactions::Pause

def assert_source(source)

def assert_source(source)
  raise TypeError, "#{source.type} is not a valid input type" unless source.is_a? InputDevice
end

def encode

def encode
  output = {type: type}
  output[:duration] = (@duration * 1000).to_i if @duration
  output
end

def initialize(source, duration = nil)

def initialize(source, duration = nil)
  super(source)
  @duration = duration
  @type = :pause
end