【问题标题】:XCTestCase: Tap on cell in collectionView with IndexPathXCTestCase:使用 IndexPath 点击 collectionView 中的单元格
【发布时间】:2015-12-02 18:14:19
【问题描述】:

我的 UI 测试中有一个集合视图,我想点击 IndexPath 1-0 的单元格。如何在 UI 测试中处理此单元格?

我找到了这个,但这不是我想要的:app.collectionViews.cells.elementAtIndex(1).tap()

【问题讨论】:

    标签: ios xctest


    【解决方案1】:

    elementAtIndex 现在已弃用。 您必须改用 elementBoundByIndex

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-05
      • 2021-01-24
      • 1970-01-01
      • 2017-01-27
      • 2014-12-30
      • 1970-01-01
      相关资源
      最近更新 更多