Long-press an element
Medium70 pts~25 min
- Gestures
- W3C actions
Practice app · Acme Mobile
A mobile app in a device frame. Elements expose data-accessibility-id (= aria-label) for AppiumBy.accessibilityId.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Hold a touch for at least 800 ms and verify the app recognised a long press.
Your task
- 1Log in as qa@target.dev / Test@123 via the accessibility ids "username", "password" and "login".
- 2Tap "allow" on the notification permission dialog (#permission-dialog) — the app is blocked until you answer it.
- 3Open the Gestures tab (accessibility id "tab-gestures").
- 4Long-press the tile (accessibility id "long-press", #long-press-target) for about 1000 ms.
- 5Assert #long-press-result reads "Long press detected".
Acceptance criteria
- The result reads “Long press detected”
- A long-press gesture is used
- At least 1 assertion passes
Fixtures
- username
- qa@target.dev
- password
- Test@123
Appium 2 · Appium · Gestures & interactions