Appium 2

Pinch and zoom

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-pinch-and-zoom

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

Objective

Perform two-finger pinch-open and pinch-close gestures on a detail screen and verify the screen survives them.

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 item 9 (accessibility id "item-9").
  4. 4Create two touch pointers (finger1, finger2) and pinch open from the centre of #item-detail, then pinch close.
  5. 5Assert the detail screen is still shown with the title "Item 9".

Acceptance criteria

  • Item 9 detail is still shown
  • Two-pointer actions are used
  • At least 1 assertion passes

Constraints

  • The practice app has no zoomable map; the task is building a correct two-finger gesture.

Fixtures

username
qa@target.dev
password
Test@123

Appium 2 · Appium · Gestures & interactions