My app under test has an element (a
I found one way to do this. This does get me the correct element - but I feel there has to be a simpler answer that does not rely on me knowing the element's type (staticText).
If anyone has a better answer, you are welcome to contribute.
XCUIElement *progressTextByAccessibility = [[app staticTexts] elementMatchingType:XCUIElementTypeStaticText identifier:@"Progress"];