Hi all,
I need to implement some complicated gesture. I need to press some element, move it to another element, hold 5 seconds(in this case some required context menu will be appeared), and release it.
The only way I found to get it working is
touchAction.longPress(FirstElement, Duration.ofSeconds(30)).moveTo(TwoElement.getCenter().x, TwoElement.getCenter().y + 45).release().perform();
In this case the movement is so slow and it’s enough to get context menu appeared. But it makes test case very slow and it’s not acceptable for us.
I’ve tried to do below touch action, as it looks more appropriate for my case, but it doesn’t work at all.
touchAction.longPress(FirstElement, Duration.ofSeconds(1)).moveTo(TwoElement.getCenter().x, TwoElement.getCenter().y + 45).waitAction(Duration.ofSeconds(2)).release().perform();
Please help me to get it working.