标签: ios xctest
我的UI测试中有一个集合视图,我想点击IndexPath 1-0的单元格。如何在UI测试中解决此单元?
我找到了这个,但这不是我想要的:app.collectionViews.cells.elementAtIndex(1).tap()
app.collectionViews.cells.elementAtIndex(1).tap()
答案 0 :(得分:0)
elementAtIndex现已弃用。 你必须使用elementBoundByIndex