appium

How to tap and hold (Long press) using appium for Android?


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 not getting any solution


Solution

  • Need to pass driver

    TouchAction action = new TouchAction(driver);
    action.longPress(webElement).release().perform();