簡體   English   中英

XCTestCase:使用IndexPath點擊collectionView中的單元格

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM