【发布时间】:2016-02-27 18:20:21
【问题描述】:
如何通过 Xcode 中的 UI 测试执行“向左滑动”操作来触发 segue 和更改视图控制器?
记录的代码是
[[[[[[[XCUIApplication alloc] init].otherElements containingType:XCUIElementTypeNavigationBar identifier:@"UIView"] childrenMatchingType:XCUIElementTypeOther].element childrenMatchingType:XCUIElementTypeOther].element childrenMatchingType:XCUIElementTypeOther].element tap];
但它似乎不起作用——据我所知,视图控制器没有更改为新的。
【问题讨论】:
标签: ios objective-c xcode xcode7 xcode-ui-testing