Closed JOyo246 closed 2 weeks ago
For some modifiers, which could be applied multiple times in the code, like background
, inspection function also takes an index
, so for introspecting the second one you'd write try sut.inspect().background(1)
.
The API for accessibilityIdentifier
does not take an index, meaning it only looks up for the first instance. I could amend it to consume the index, but I don't see a point - you're meant to apply only a single accessibilityIdentifier
per view.
An identifier can be used to uniquely identify an element in the scripts you write using the UI Automation interfaces. Using an identifier allows you to avoid inappropriately setting or accessing an element’s accessibility label.
Technically this is a limitation of the library API here, but there is no practical use to "fixing" it. Let me know if I'm missing anything.
Output here is:
My Expected Output would be: