老师,麻烦你看看为我的监听生成的代码是这样的
XCUIApplication *app = [[XCUIApplication alloc] init];
XCUIElementQuery *usernameElementsQuery = [app.otherElements containingType:XCUIElementTypeStaticText identifier:@"userName"];
[[[usernameElementsQuery childrenMatchingType:XCUIElementTypeTextField] elementBoundByIndex:0] tap];
[[usernameElementsQuery childrenMatchingType:XCUIElementTypeTextField] elementBoundByIndex:0] //怎么会跳出这样一句来啊,然后也不能把 xiaoming 纪录下来
XCUIElement *textField = [[usernameElementsQuery childrenMatchingType:XCUIElementTypeTextField] elementBoundByIndex:1];
[textField tap];
[textField tap];
[[usernameElementsQuery childrenMatchingType:XCUIElementTypeTextField] elementBoundByIndex:1]
[app.buttons[@"log"] tap];
//我操作的这个过程,是可以正常NSLog我想打印的东西 alert 也可以正常的show