Sha256: 1af04958b9b169f135dfaa9a804226b90ce60b5a13c8647299804d92818e04f8

Contents?: true

Size: 630 Bytes

Versions: 10

Compression:

Stored size: 630 Bytes

Contents

module Appium
  module Core
    module Android
      module Touch
        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
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
appium_lib_core-1.3.0 lib/appium_lib_core/android/touch.rb
appium_lib_core-1.2.7 lib/appium_lib_core/android/touch.rb
appium_lib_core-1.2.6 lib/appium_lib_core/android/touch.rb
appium_lib_core-1.2.5 lib/appium_lib_core/android/touch.rb
appium_lib_core-1.2.4 lib/appium_lib_core/android/touch.rb
appium_lib_core-1.2.3 lib/appium_lib_core/android/touch.rb
appium_lib_core-1.2.2 lib/appium_lib_core/android/touch.rb
appium_lib_core-1.2.1 lib/appium_lib_core/android/touch.rb
appium_lib_core-1.2.0 lib/appium_lib_core/android/touch.rb
appium_lib_core-1.1.0 lib/appium_lib_core/android/touch.rb