Appium 2

Wait for an element to disappear

Medium70 pts~25 min
  • Explicit waits
  • Overlays
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-wait-for-an-element-to-disappear

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

Objective

Wait for the permission dialog to be dismissed before touching the screen behind it.

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. 3Wait until the dialog (accessibility id "allow") is no longer displayed.
  4. 4Assert the inbox is displayed and interactable.

Acceptance criteria

  • The dialog is gone
  • The inbox is shown
  • An invisibility wait is used
  • At least 1 assertion passes

Constraints

  • Do not use Thread.sleep / time.sleep / driver.pause.

Fixtures

username
qa@target.dev
password
Test@123

Appium 2 · Appium · Waits & context