I am trying to implement below move_to
action
https://www.rubydoc.info/gems/appium_lib/9.3.8/Appium%2FTouchAction:move_to
Appium::TouchAction.new.press(x: 176, y: 200).move_to(50).perform
but it is giving error
NoMethodError:
undefined method `key?' for 100:Integer
I want to move/swipe screen on iOS Simulator from one co-ordinates to other co-ordinates.
The link you posted clearly states that move_to
expects a hash with :x
and :y
as parameters, just like you passed to press
.
Appium::TouchAction.new.press(x: 176, y: 200).move_to(x: 176, y: 200).perform