hi All,
I had a requirement where swipe wouldn't work because it is too fast, and duration couldn't be controlled.
Whereas in case of drag we can control the duration of drag operation.
So I came up with this snippet
public static void drag(String location, String duration){
Map<String, String> params = new HashMap();
params.put("location", location);
params.put("duration", duration);
getQAFDriver().executeScript("mobile:touch:drag", params);
}
It would be nice to have this method in DeviceUtils class.