I would like to locate two XCUIElements and no problem to find them in following code.
func cells(_ text:String) {
app.cells.element(withLabelContaining: text).firstMatch
}
func text(_ text:String) {
app.staticText.element(withLabelContaining: text).firstMatch
}
However, I would like to find a way to just use one query to look for multiple type of XCUIElement, how can I do it? I check the doc but I cannot find any solution for it
different type of XCUIElement