Appium 2

Wait for an element to appear

Medium70 pts~25 min
  • Explicit waits
  • Synchronisation
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-appear

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

Objective

Synchronise on elements that appear after navigation using explicit waits only.

Your task

  1. 1Log in as qa@target.dev / Test@123 via the accessibility ids "username", "password" and "login".
  2. 2Wait until "allow" is visible, then tap it.
  3. 3Wait for item 13 (accessibility id "item-13") to be displayed and tap it.
  4. 4Wait for #item-detail-title and assert it reads "Item 13".

Acceptance criteria

  • Item 13 is opened
  • Explicit waits are used
  • No fixed sleeps
  • 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