Sha256: 96b1525880695ad52e45f8ecd6905697cffe0f877f23af5263fac9a2d6a3fb04

Contents?: true

Size: 650 Bytes

Versions: 3

Compression:

Stored size: 650 Bytes

Contents

module Appium
  module Core
    module Device
      module TouchActions
        def self.add_methods
          ::Appium::Core::Device.add_endpoint_method(:touch_actions) do
            def touch_actions(actions)
              actions = { actions: [actions].flatten }
              execute :touch_actions, {}, actions
            end
          end

          ::Appium::Core::Device.add_endpoint_method(:multi_touch) do
            def multi_touch(actions)
              execute :multi_touch, {}, actions: actions
            end
          end
        end
      end # module TouchActions
    end # module Device
  end # module Core
end # module Appium

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
appium_lib_core-1.7.2 lib/appium_lib_core/device/touch_actions.rb
appium_lib_core-1.7.1 lib/appium_lib_core/device/touch_actions.rb
appium_lib_core-1.7.0 lib/appium_lib_core/device/touch_actions.rb