Member-only story
Mobile Automation using Appium 2.0 Part 1-Long Press
Appium 1.8 introduced a list of mobile gestures as part of the W3C WebDriver specification's Actions. Appium supports a variety of mobile gestures to help automate interactions in mobile applications. This article demonstrates how to automate the LongPress gesture using Appium 2.0 and the Java Client library 9.0.
Software Requirement:
· Node.js 18.x
· Jdk 14.x
· Appium Server V1.19.1
· Android SDK 2.0
· Maven
· Eclipse for Java Developers
Mobile Gestures :
Below is the list of mobile gestures:
1. Long Press — Tap and hold the screen for a specified duration.
2. Swipe—a single swipe in any direction.
3. Scroll—Simulates scrolling action on the device.
4. Tap—a single tap on the screen.
5. Double Tap—two quick taps on the screen.
6. Pinch—a two-finger gesture to zoom in or out.
7. Zoom—a two-finger gesture to magnify or reduce content size.
8. Drag and Drop—Move an object by dragging and dropping it at a new location.