UI Automation, How to Perform Gestures

I want to perform gesture gestures on a UITableView cell using an automation script. I tried recording this action, but I get the following:

target.frontMostApp().mainWindow().tableViews()[1].cells()[2].buttons()[0].scrollToVisible(); 
+4
source share
1 answer

These are the commands I was looking for: dragInsideWithOptions() or dragFromToForDuration;

Use it like this: target.frontMostApp().mainWindow().tableViews()[1].cells()[2].dragInsideWithOptions({startOffset:{x:0.0, y:0.1}, endOffset:{x:0.5, y:0.1}, duration:0.25});

+3
source

All Articles