Module: Appium::Core::Android::Touch
- Defined in:
- lib/appium_lib_core/android/touch.rb
Class Method Summary collapse
Class Method Details
.extend_touch_actions ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/appium_lib_core/android/touch.rb', line 5 def self.extend_touch_actions ::Appium::Core::TouchAction.class_eval do # Visible for testing # @private def swipe_coordinates(start_x: 0, start_y: 0, offset_x: 0, offset_y: 0) Appium::Logger.info "extended Appium::Core::Android::Touch, start_x: #{start_x},"\ " start_y: #{start_y}, offset_x: #{offset_x}, offset_y: #{offset_y}" { offset_x: (start_x + offset_x), offset_y: (start_y + offset_y) } end end end |