[英]XCTestCase: Tap on cell in collectionView with IndexPath
我在UI測試中有一個集合視圖,我想用IndexPath 1-0點擊單元格。 如何在UI測試中解決此單元?
我找到了這個,但它不是我想要的: app.collectionViews.cells.elementAtIndex(1).tap()
elementAtIndex現已棄用。 你必須使用elementBoundByIndex
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.