Hey all π We are working on E2E tests using Appium for a KMP app (Android/iOS) with Jetpack Compose UI.
On
Android, everything works fine β We can locate elements using
testTag
.
But on
iOS, Appium Inspector just shows a bunch of nested
XCUIElementTypeOther
elements β nothing is accessible via
accessibilityId
, XPATH, etc.
We tried adding
Modifier.semantics { contentDescription = "..." }
alongside
testTag
, built the Compose framework with
./gradlew linkDebugFrameworkIosSimulatorArm64
, added it to Xcode (Embed & Sign), cleaned DerivedData, and rebuilt the app. Still, the elements arenβt exposed in Appium or Xcode Accessibility Inspector.
Anyone got Compose-based elements discoverable on iOS for Appium? Are we missing something? Does anyone have an example of the repository where accessbility ID for iOS can be viewed using Appium Inspector?
Attached screenshot of how the PoC app looks like in Appium Inspector for Android and iOS app.