Handle a system permission dialog
Medium70 pts~25 min
- Permissions
- Dialogs
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
Handle the notification permission dialog shown after login and verify the choice was stored.
Your task
- 1Log in as qa@target.dev / Test@123 via the accessibility ids "username", "password" and "login".
- 2Wait for the dialog and assert its title (#permission-title) mentions notifications.
- 3Tap "allow".
- 4Open the Profile tab (accessibility id "tab-profile") and assert #permission-status reads "Notifications allowed".
Acceptance criteria
- The dialog is answered with Allow
- The profile shows “Notifications allowed”
- At least 2 assertions pass
Constraints
- Do not use autoGrantPermissions or autoAcceptAlerts.
Fixtures
- username
- qa@target.dev
- password
- Test@123
Appium 2 · Appium · Waits & context