Appium 2

Swipe in a direction

Medium70 pts~25 min
  • Swipe
  • 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-swipe-in-a-direction

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

Objective

Swipe the feature carousel left and right and verify the slide index.

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. 4Swipe left three times on the carousel (accessibility id "carousel") — the index shows "4 / 4".
  5. 5Swipe right once and assert #carousel-index reads "3 / 4".

Acceptance criteria

  • The carousel ends on slide 3 / 4
  • Swipe gestures are used, not the arrow buttons
  • At least 1 assertion passes

Fixtures

username
qa@target.dev
password
Test@123

Appium 2 · Appium · Gestures & interactions