It turns out that tableRows actually doesn't detect rows in a UITableView . Use cells instead.
I have the feeling that tableRows and tableColumns are used for testing on Mac OS X, where you have actual tables, and on iOS UITableViewCell and UICollectionViewCell . Or this may be a mistake, as we are still in the beta period.
let table = app.tables.element XCTAssertTrue(table.exists) let cell = table.cells.elementBoundByIndex(2) XCTAssertTrue(cell.exists) let indexedText = cell.staticTexts.element XCTAssertTrue(indexedText.exists)
or one liner
XCTAssertTrue(app.tables.element.cells.elementBoundByIndex(2).exists)
source share