Appium 2

Perform a multi-touch gesture

Hard120 pts~45 min
  • Multi-touch
  • W3C actions
Practice app · Acme Mobile

A mobile app in a device frame. Elements expose data-accessibility-id (= aria-label) for AppiumBy.accessibilityId.

Test URL
/lab/appium-perform-a-multi-touch-gesture

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Run two fingers at once: one long-presses the tile while the other swipes the carousel.

Your task

  1. 1Log in as qa@target.dev / Test@123 via the accessibility ids "username", "password" and "login".
  2. 2Tap "allow" on the notification permission dialog (#permission-dialog) — the app is blocked until you answer it.
  3. 3Open the Gestures tab (accessibility id "tab-gestures").
  4. 4finger1: press #long-press-target, hold 1000 ms, release. finger2 (same actions call): swipe the carousel left.
  5. 5Assert "Long press detected" and #carousel-index "2 / 4".

Acceptance criteria

  • The long press is detected
  • The carousel shows 2 / 4
  • Two pointers run in one gesture
  • At least 2 assertions pass

Fixtures

username
qa@target.dev
password
Test@123

Appium 2 · Appium · Gestures & interactions