I have a scenario to test an IOS app like this:
- long press on an element.
- move that element to desired location.
I am using the following code:
TouchAction action = new TouchAction(driver)
action.long_press(element1).move_to(element2).wait(500).release().perform()
but its not working for me. Need any good suggestion.