Method: Appium::TouchAction#move_to

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

#move_to(opts) ⇒ Object

Move to the given co-ordinates.

‘move_to`’s ‘x` and `y` have two case. One is working as coordinate, the other is working as offset.

Parameters:

  • opts (Hash)

    a customizable set of options

Options Hash (opts):

  • :x (integer)

    x co-ordinate to move to if element isn’t set. Works as an offset if x is set with Element.

  • :y (integer)

    y co-ordinate to move to if element isn’t set. Works as an offset if y is set with Element.

  • Element (WebDriver::Element)

    to scope this move within.



48
49
50
51
# File 'lib/appium_lib/device/touch_actions.rb', line 48

def move_to(opts)
  opts = args_with_ele_ref(opts)
  chain_method(:moveTo, opts)
end