ios - 如何在相册上选择图像 - iOS 测试 KIF

标签 ios automated-tests ios8.1 kif

面对这个问题,当你从相册中选择一张图片时,不会点击图片。在点压力也发生。怎么办?

使用:[测试者选择相册中的照片:@“时刻”在行: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/

相关文章:

unit-testing - 在 go api 调用中测试

ios - plist 文件是否与应用程序包一起存储?

iOS Swift Webview 在加载时显示图像

ios - 获取嵌入在 UITableViewCell 中的 UITable 单元格的索引路径

objective-c - 查找内存泄漏/过度释放裂缝的来源

c# - SpecFlow IObjectContainer : How to register and consume multiple objects of the same type?

ios - Swift 协议(protocol)和类的弱引用

java - 如何使用 .bat 在 mac 中启动 appium desktop 1.6.1

swift - 将从 ManagedObjectContext 过滤的对象转换为 NSArray

ios - AppleLanguages 不再返回所有语言