Closed vinocher-bc closed 4 months ago
I agree this feels like the wrong solution. We've discussed implementing XCUITest as a layer on top of this, which is probably the right solution.
- There could be any number of ways to look up elements that don't fit within the
foundUsing
/foundUsingValue
model, for example asking for the currently focused element, or asking for descendants of an element.
Yes, this approach has holes, and will be abandoned.
Store element's found method values, so it can be used to check if the element still exists. This allows a method like element.waitForNonExistence() to be implemented, to handle cases where the id may be reused by the Accessibility provider after an element is deleted.