battlmonstr

1

votes
1

answer
33

views

XCTest: Is there a way to find a view of any type by ID in UI tests?

In XCTest there's a way to get all UI elements by type, and then filter by accessibilityIdentifier like: app.buttons[someID] But what if I don't know the type of the view? If I'm looking for a UIView, I can write: app.otherElements[someID] but this excludes UIButton views. I can implement this by ca...
battlmonstr