我正在尝试自动化拾取轮但是我无法选择拾取轮中的任何选项
尝试使用代码[[[[app descendantsMatchingType:XCUIElementTypeAny] childrenMatchingType:XCUIElementTypePicker] elementMatchingPredicate: [NSPredicate predicateWithFormat:@"2 of 6"]] tap];
任何人都可以在这里帮助我
答案 0 :(得分:0)
您当前的代码是将元素与“2 of 6”进行比较,而不是元素的值。
将谓词格式更改为"value CONTAINS '2 of 6'"
。