Hi,for Appium for Android. i use this lines for long press on elements:
//TouchAction class is used for long press on elements
TouchAction action1 = new TouchAction(driver);
String temp = SetUpGeneral.ApplicationPackage+":id/add_sound";
WebElement chat1 = driver.findElementById(temp);
action1.longPress(chat1).release().perform();
Its work good.
the only problem is that i I need long press ( 7 Second ) on the element.
is it possible to set time for long prees ? (like prees for 7 second)
Thanks !