Appium 2

Define Android desired capabilities

Easy30 pts~12 min
  • Capabilities
  • UiAutomator2
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-define-android-desired-capabilities

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

Objective

Declare a complete, explicit Android capability set and use the session to log in.

Your task

  1. 1Set platformName Android, automationName UiAutomator2, deviceName and app = TEST_URL.
  2. 2Add appium:newCommandTimeout (e.g. 120) so an idle debugger does not kill the session.
  3. 3Log in as qa@target.dev / Test@123 via the accessibility ids "username", "password" and "login".
  4. 4Assert the inbox (#list-container, the list of items) is displayed.

Acceptance criteria

  • automationName and newCommandTimeout are set
  • Login succeeds and the inbox is shown
  • At least 1 assertion passes

Constraints

  • Keep app = TEST_URL from the starter — it installs the practice build of Acme Mobile.

Fixtures

username
qa@target.dev
password
Test@123

Appium 2 · Appium · Setup & capabilities