【发布时间】:2015-12-02 18:14:19
【问题描述】:
我的 UI 测试中有一个集合视图,我想点击 IndexPath 1-0 的单元格。如何在 UI 测试中处理此单元格?
我找到了这个,但这不是我想要的:app.collectionViews.cells.elementAtIndex(1).tap()
【问题讨论】:
我的 UI 测试中有一个集合视图,我想点击 IndexPath 1-0 的单元格。如何在 UI 测试中处理此单元格?
我找到了这个,但这不是我想要的:app.collectionViews.cells.elementAtIndex(1).tap()
【问题讨论】:
elementAtIndex 现在已弃用。 您必须改用 elementBoundByIndex
【讨论】: