Skip to main content

Use Visual Accessors for Mobile Testing

Use this article when mobile tests need visual matching because a stable DOM, accessibility ID, or native locator is not available.

Validation workflow

  1. Try a stable native, accessibility, or DOM locator first when the app exposes one.
  2. Use a tightly cropped visual accessor only for the element region that must be matched.
  3. Replay on the target device profile and confirm the match survives expected resolution, orientation, and theme variations.

Last updated: September 30, 2026