Module: Appium::Core::Device::TouchActions

Defined in:
lib/appium_lib_core/device/touch_actions.rb

Class Method Summary collapse

Class Method Details

.add_methodsObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/appium_lib_core/device/touch_actions.rb', line 5

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