【发布时间】:2016-06-09 20:25:25
【问题描述】:
我正在尝试编写一个涉及点击 UITableViewCell 中的按钮的 UITest。
当我在点击单元格时尝试记录我的点击动作时,XCode 会生成以下行:
[[[[[XCUIApplication alloc] init].tables childrenMatchingType:XCUIElementTypeOther] elementBoundByIndex:1].otherElements[@"Problems"] tap];
播放时,这会导致与点击单元格本身相同的操作,这不是我想要的。
有没有办法让它专门按下按钮?
【问题讨论】:
标签: ios objective-c xcode-ui-testing