Mobile Testing / Quiz

Locators: Accessibility ID or Bust

On mobile, XPath is a tax and accessibility id is a treaty. Learn the locator hierarchy that keeps one suite running on two platforms.

Difficulty
Easy
Format
Quiz
Points
100
Estimate
9 min

// MISSION BRIEF

Your Mission

Every mobile element lookup travels device-round-trip, so locator choice is both a stability and a speed decision. This drill covers the strategy hierarchy, the platform attributes behind accessibility id, and the TalkBack side effect most teams discover too late.

Six questions. Speed bonus active.

// FIRST CONTACT

Battle teaser

The generally recommended first-choice locator strategy in Appium:

  1. AAccessibility id: fast, intended for automation, and the same lookup works on Android and iOS
  2. BClass name, since every element has one
  3. CPixel coordinates from the design specs
  4. DXPath with full paths, since it can reach anything
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

appiumlocatorsandroidios