Method: Appium::TouchAction#swipe

Defined in:
lib/appium_lib/common/touch_actions.rb

#swipe(opts) ⇒ Object



66
67
68
69
70
71
72
73
74
# File 'lib/appium_lib/common/touch_actions.rb', line 66

def swipe(opts)
  start_x = opts.fetch :start_x, 0
  start_y = opts.fetch :start_y, 0
  end_x = opts.fetch :end_x, 0
  end_y = opts.fetch :end_y, 0
  duration = opts.fetch :duration, 200

  super(start_x: start_x, start_y: start_y, end_x: end_x, end_y: end_y, duration: duration)
end