By NHI Mgmt Group Editorial TeamDomain: Cyber SecuritySource: Arxan TechnologiesPublished April 14, 2026

TL;DR: Modern mobile frameworks can make test automation brittle when UI hierarchies and identifiers change across builds, even if the app behaves correctly, according to Arxan Technologies. The practical lesson is that stable testable identifiers, accessibility-first design, and UI inspection are now part of mobile engineering governance, not just QA convenience.


At a glance

What this is: This article explains why Appium-based mobile automation becomes unreliable when modern UI frameworks generate dynamic, unstable element identifiers.

Why it matters: It matters to IAM and security practitioners because the same governance pattern applies wherever automation depends on stable identity signals, whether in human access, NHI workflows, or agentic systems.

👉 Read Arxan Technologies' analysis of Appium challenges in modern mobile frameworks


Context

Mobile automation depends on the same basic premise as any control plane that makes decisions from identity-like signals: the system needs stable, observable attributes to recognise what it is interacting with. When modern UI frameworks abstract the native layer, that stability can disappear unless developers deliberately expose durable identifiers for automation and accessibility.

The broader governance issue is not Appium itself but the design assumption behind it. If identifiers, view hierarchies, or component structures change from build to build, automation loses reliability and teams start compensating with fragile locators. That is a familiar control failure pattern for IAM and NHI practitioners: when the signal is unstable, the governing process becomes noisy and less trustworthy.


Key questions

Q: How should teams design mobile apps so automation stays reliable across builds?

A: Teams should expose stable, explicit identifiers for key controls and avoid depending on implicit UI hierarchy or generated element names. The practical standard is to treat testability as a design requirement, then verify those identifiers across build variants before release. That reduces locator fragility and makes regression testing much more predictable.

Q: Why do modern UI frameworks make Appium tests more brittle?

A: Modern frameworks can generate native views dynamically and alter the UI hierarchy as layouts, optimisations, or rendering states change. When locators depend on that shifting structure, a test can work in one build and fail in the next. The risk is not the framework itself, but the absence of durable identifiers that automation can trust.

Q: How can security and IAM teams think about unstable automation signals?

A: They should see them as a governance problem, not just a tooling issue. Any control that depends on changing or ambiguous signals becomes harder to verify and easier to misapply. The same logic applies to identity, privilege, and NHI governance, where stable attributes are essential for reliable decisions and auditability.

Q: What should teams do when accessibility and automation requirements conflict?

A: They should resolve the conflict by designing a single set of stable, meaningful identifiers that supports both accessibility and testing. That usually means avoiding locator strategies built on layout details and instead using explicit metadata on important elements. If one identifier can serve users and test tools, governance becomes simpler and more durable.


Technical breakdown

How Appium resolves elements through native automation layers

Appium does not inspect app screens directly in a vacuum. It relies on the operating system's native automation frameworks, such as UIAutomator2 on Android and XCUITest on iOS, to expose a UI hierarchy that test scripts can query. The script then uses locators like accessibility IDs, resource IDs, XPath, or class names to bind to elements. Accessibility IDs are usually the most durable because they are intentionally defined rather than inferred from layout structure. The core issue is that automation is only as stable as the identifiers the application exposes.

Practical implication: Prefer explicit accessibility identifiers for critical flows and treat them as a design requirement, not a test-team workaround.

Why modern UI frameworks create locator instability

Frameworks such as React Native, Flutter, and Jetpack Compose can generate or reshape native UI components at runtime. That abstraction improves developer speed, but it can also alter the UI hierarchy across builds or even between rendering states. When identifiers are missing, derived from internal component structure, or regenerated dynamically, locators that worked in one release may fail in the next. This is not a failure of mobile automation tooling. It is a mismatch between how the app is built and how automation expects to observe it.

Practical implication: Validate locator stability across builds and require deterministic identifiers for any element that supports business-critical or regression-critical tests.

How accessibility and testability reinforce each other

Accessibility labels and identifiers help both assistive technologies and automation tools interpret the app consistently. When teams define meaningful, stable identifiers, they improve screen-reader usability and reduce the need for fragile XPath-based tests. That alignment matters because it turns testability into part of the UI governance model. Teams that separate accessibility from automation often end up rebuilding the same metadata twice, while teams that design for both gain a more resilient control surface for QA and release assurance.

Practical implication: Build accessibility metadata into the development standard and review it in the same workflow as feature acceptance and release readiness.


NHI Mgmt Group analysis

Stable identifiers are a governance control, not just a QA convenience. The article shows that automation reliability depends on whether the application exposes persistent, intentional identifiers rather than ephemeral UI structure. That is the same principle identity programmes apply to service accounts, workload identity, and access entitlements. When the observable signal is not stable, downstream control decisions become unreliable, so practitioners should treat identifier design as part of control governance.

Locator fragility is a form of automation debt. Dynamic UI generation shifts the burden from design-time clarity to runtime guesswork, and that debt compounds as teams add more fragile locators to keep tests passing. In governance terms, this is similar to compensating controls that only work until the next release cycle. Practitioners should use the same discipline they apply to identity lifecycle controls: explicit naming, lifecycle consistency, and removal of dependency on incidental structure.

Accessibility-first engineering improves both assurance and operational trust. The article makes a strong case that accessibility identifiers help users and test systems at the same time. That dual benefit is important because it aligns product engineering with control assurance rather than treating them as separate concerns. For practitioners, the lesson is that resilient automation comes from intentionally designed signals, not from more test retries or more complex locators.

Modern frameworks expose a testability gap that teams must design around. React Native, Flutter, and Jetpack Compose do not make automation impossible, but they do raise the cost of relying on implicit UI structure. The right response is to build stable identifiers into release criteria and inspect UI hierarchies early. Practitioners should treat testability as an architectural requirement, not a post-build diagnostic.

Named concept: automation signal stability. This article is really about whether the application emits consistent machine-readable signals across builds. When those signals shift, automated assurance degrades even if the end-user experience appears fine. Teams should govern UI metadata with the same seriousness they apply to other trust anchors, because reliable automation depends on stable signals, not just stable code.

What this signals

Automation signal stability is a useful lens for any programme that depends on machine-readable trust anchors. When the attributes a control plane reads are inconsistent, governance gets noisy, evidence gets weaker, and teams spend more time compensating for design drift than improving assurance.

The practical signal for practitioners is whether control metadata is intentionally designed or merely inherited from implementation detail. Where that metadata is stable, automation scales more cleanly. Where it is accidental, every release increases the chance that assurance will fail quietly before anyone notices.


For practitioners

  • Standardise stable accessibility identifiers Require every critical mobile control to expose a fixed accessibility identifier that does not change across releases, layouts, or framework optimisations.
  • Validate locator stability across builds Run the same automation suite against multiple build variants and compare failures to identify identifiers that depend on internal component hierarchy or dynamic rendering.
  • Inspect the UI hierarchy before scaling tests Use Appium Inspector, Xcode Accessibility Inspector, Android UIAutomator Viewer, or Android Studio Layout Inspector to verify how the app actually exposes elements to automation.
  • Make accessibility metadata part of development acceptance Add identifier consistency, accessibility labels, and testability review to definition-of-done checks so QA does not inherit unstable UI design decisions.

Key takeaways

  • Mobile automation becomes fragile when applications expose unstable identifiers instead of deliberate machine-readable signals.
  • Accessibility-first design and testability are linked controls, not separate engineering concerns.
  • Teams that standardise identifiers, inspect UI hierarchies, and validate across builds reduce automation debt and improve release assurance.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 define the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AC-1Stable identifiers support reliable access control decisions in automated testing and UI governance.
NIST SP 800-53 Rev 5CM-6Baseline configuration includes consistent UI identifiers and testability metadata across builds.
ISO/IEC 27001:2022A.8.25Secure development lifecycle controls apply to testability and accessibility design choices.

Embed testability and accessibility requirements into secure development and acceptance criteria.


Key terms

  • Accessibility Identifier: A stable label or attribute exposed by a mobile app so assistive technologies and automation tools can reliably find an element. In practice, it becomes part of the app's machine-readable interface and should remain consistent across builds, layouts, and framework updates.
  • Locator Stability: The degree to which an automated test can find the same UI element over time using the same selector. Stable locators reduce false failures, while unstable locators create maintenance overhead and make release confidence depend on implementation details rather than intended user flows.
  • UI Hierarchy: The structured tree of screens, containers, and components that automation frameworks inspect to identify elements. If the hierarchy changes dynamically or exposes weak identifiers, automation becomes brittle because the test is binding to structure that was never meant to be a durable control signal.
  • Automation Debt: Automation debt is the hidden cost of speeding up a broken process before it is properly designed. In practice, it appears when organisations automate unclear handoffs, inconsistent approvals, or manual exceptions, then inherit the same problems at higher speed and with less visibility.

What's in the full article

Arxan Technologies' full blog post covers the operational detail this post intentionally leaves for the source:

  • Step-by-step examples of how Appium maps to Android and iOS native automation layers.
  • Concrete locator choices, including when accessibility IDs are more reliable than XPath.
  • Practical inspection workflows using Appium Inspector and platform-specific hierarchy tools.
  • Developer patterns for exposing stable identifiers in React Native, Flutter, and Jetpack Compose.

👉 Arxan Technologies' full post covers locator strategies, UI hierarchy debugging, and stable identifier patterns in more detail.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, IAM, and secrets management with practical controls for identity-driven programmes. It is designed for practitioners who need to connect governance, lifecycle management, and operational assurance across identity domains.
NHIMG Editorial Note
Published by the NHIMG editorial team on September 3, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org