there is.
I am writing a XCUITest test code. I want to check out a UITableView. But I could not check now on a UITableView. I do not know why the cell key has no answer.
I wrote the following code.
let tablesQuery = app.tables
app.tables.cells.staticTexts["山手線"].tap()
tablesQuery.staticTexts["山手線"].tap()
tablesQuery.staticTexts["山手線"].tap()
tablesQuery.staticTexts["渋谷"].tap()
tablesQuery.staticTexts["大崎"].tap()
tablesQuery.staticTexts["山手線"].tap()
Viewed is the next capture.

And my test code throws the following error.

There is a UITableView on this page. I do not know why the cell key has no answer.
What is the problem?
source
share