Appium - Swipe
Below code snippet can be used to swipe from left to right in Appium
/** * Swipe element from left to right * Can be used to perform swipe and delete action on mobile devices */ def static void swipeLeft(IOSElement element){ var touchAction = new TouchAction(driver) var size = element.size touchAction.press(element, size.width, 0) .waitAction(Duration.ofSeconds(1)) .moveTo(element, -size.width, 0) .release .perform }
Leave a Comment