繁体   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