面对这个问题,当你从相册中选择一张图片时,不会点击图片。在点压力也发生。怎么办?
使用:[测试者选择相册中的照片:@“时刻”在行:0 列:0]; 以及:[测试器 tapScreenAtPoint:CGPointMake(47, 150)];
最佳答案
我也在想办法解决这个问题。
通过在 [tester tapScreenAtPoint:CGPointMake(47, 150)]
之前添加一个 [tester waitForTimeInterval:1]
解决了这个问题
像这样:
[tester tapViewWithAccessibilityLabel:@"Camera Roll"]; //Album Name
[tester waitForTimeInterval:1];
[tester tapScreenAtPoint:CGPointMake(47, 150)];
[tester tapViewWithAccessibilityLabel:@"Choose"];
关于ios - 如何在相册上选择图像 - iOS 测试 KIF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27194311/