Locate by id (resource-id)
Easy30 pts~12 min
- Locators
- resource-id
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
Log in using id locators (Android resource-id) for the form fields.
Your task
- 1Locate the fields by id: mobile-username, mobile-password and mobile-login.
- 2Type the credentials qa@target.dev / Test@123 and tap the login button.
- 3Tap "allow" on the notification permission dialog (#permission-dialog) — the app is blocked until you answer it.
- 4Assert the inbox is displayed.
Acceptance criteria
- The form is driven with id locators
- The inbox is shown
- At least 1 assertion passes
Fixtures
- username
- qa@target.dev
- password
- Test@123
Appium 2 · Appium · Locators & elements