Is there any code to tap and hold on Appium? i use python , is there any command to support it ?
For double click i used click on element twice, for tap and hold i am no
It should be like this. The duration is calculated in milliseconds, so it need to multiply by 1000 as 1 second.
TouchAction action = new TouchAction(driver); action.longPress(webElement,duration*1000).release().perform();