Handle a list of elements
Medium70 pts~25 min
- Collections
- Lists
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
Collect all inbox items, assert their count, and open the last one.
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.
- 3Find all list items (class list-item, accessibility ids item-1 … item-20) with a single findElements call.
- 4Assert there are 20, then tap the last element and assert the detail title is "Item 20".
Acceptance criteria
- Item 20 is opened
- findElements is used
- At least 2 assertions pass
Fixtures
- username
- qa@target.dev
- password
- Test@123
Appium 2 · Appium · Locators & elements