longPress
Performs a long press gesture on the given element on the screen.
This issues a WebDriver action command for the selected element. It is based on the click command, except for iOS web context, there we use a script to simulate the long press due to the lack of support for long press gestures in webview.
정보
This command only works with the following up-to-date components:
- Appium server (version 2.0.0 or higher)
appium-uiautomator2-driver(for Android)appium-xcuitest-driver(for iOS)
Make sure your local or cloud-based Appium environment is regularly updated to avoid compatibility issues.
Usage
$(selector).longPress({ x, y, duration })