class Selenium::WebDriver::Interactions::PointerPress

def assert_button(button)

def assert_button(button)
  case button
  when Symbol
    raise ArgumentError, "#{button} is not a valid button!" unless BUTTONS.key? button
    BUTTONS[button]
  when Integer
    raise ArgumentError, 'Button number cannot be negative!' if button.negative?
    button
  else
    raise TypeError, "button must be a positive integer or one of #{BUTTONS.keys}, not #{button.class}"
  end
end