Locate with UiAutomator
Medium70 pts~25 min
- UiAutomator
- Android locators
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
Use an Android UiAutomator selector to find an inbox item by its visible text and open it.
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 “Item 5” with new UiSelector().text("Item 5") and tap it.
- 4Assert the detail title (#item-detail-title) is "Item 5".
Acceptance criteria
- Item 5 is opened
- A UiSelector is used
- At least 1 assertion passes
Fixtures
- username
- qa@target.dev
- password
- Test@123
Appium 2 · Appium · Locators & elements