I have a scenario to test an IOS app like this:
- long press on an element.
- move that element to desired location.
TouchAction action = new TouchAction(driver)
i was in trouble also about this. But i solved this like below:
TouchAction action = new TouchAction(driver); action.longPress(elem1).waitAction(3000).moveTo(elem2).perform().release();
waitAction will wait to complete longPress action than moveTo action will perform.