Appium 2

Define iOS desired capabilities

Medium70 pts~25 min
  • Capabilities
  • XCUITest
  • iOS
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-ios-desired-capabilities

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

Objective

Write the iOS (XCUITest) capability set for Acme Mobile and log in with it.

Your task

  1. 1Set platformName iOS, automationName XCUITest, deviceName (e.g. iPhone 15), platformVersion and app = TEST_URL.
  2. 2Create the session (IOSDriver / XCUITestOptions or the equivalent in your client).
  3. 3Log in as qa@target.dev / Test@123 via the accessibility ids "username", "password" and "login".
  4. 4Assert the inbox is displayed.

Acceptance criteria

  • XCUITest capabilities are used
  • Login succeeds and the inbox is shown
  • At least 1 assertion passes

Constraints

  • The practice device runs the Android build, but it accepts iOS capabilities and iOS locator strategies (name / label = accessibility id), so write the test as you would for iOS.
  • 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