I’m using Compose Multiplatform (KMP), and I’d like to know if it’s possible to access UI elements on iOS using AppiumBy.accessibilityId
. Even though I’m setting Modifier.semantics { contentDescription = "..." }
, the elements appear with no description in the accessibility tree.
The UI structure is visible in the Appium Inspector, but all the elements show accessible="false"
and no label
or name
attributes. This issue only happens on iOS — on Android everything works as expected.
Hardly believe this is correct way in KMP set ids for iOS… Please check docs.
Support for iOS accessibility features | Kotlin Multiplatform Development Documentation →
You can also use this semantic data in testing and other automation: properties such as testTag will correctly map to native accessibility properties such as accessibilityIdentifier. This makes semantic data from Compose Multiplatform available to Accessibility Services and XCTest framework.