I am using XCTest UI Test framework to check rows in a table view. In my test I need to verify the existence of text in a table view row given its index.
I was thinking of using tableRows.elementBoundByIndex
method, but it did not return anything. The number of rows returned by calling tableRows.count
is zero. The table is present and filled because I can query the text inside the rows successfully:
XCTAssertEqual(app.tables.staticTexts["Cute Alpaca"].exists)
How can I verify existence of a text in a row given its index in an XCTest UI test?