本文介绍了如何挑选图像相册 - iOS设备测试KIF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

面对这一问题,当您选择从相册中的图像变成不点击图像。在点也会发生pressure。怎么办?

Faced with this problem, when you select an image from the album comes not click on the image. At point pressure also occurs. What to do?

用于:[测试仪choosePhotoInAlbum:@众望所归atRow:0柱:0];
以及:[测试仪tapScreenAtPoint:CGPointMake(47,150);

used:[tester choosePhotoInAlbum:@"Moments" atRow:0 column:0];As well as: [tester tapScreenAtPoint:CGPointMake(47, 150)];

推荐答案

我试图弄清楚这一点为好。

I was trying to figure this out as well.

通过增加一个 [1测试waitForTimeInterval]解决了它C>

Solved it by adding a [tester waitForTimeInterval:1] before [tester tapScreenAtPoint:CGPointMake(47, 150)]

这样的:

[tester tapViewWithAccessibilityLabel:@"Camera Roll"];  //Album Name
[tester waitForTimeInterval:1];
[tester tapScreenAtPoint:CGPointMake(47, 150)];
[tester tapViewWithAccessibilityLabel:@"Choose"];

这篇关于如何挑选图像相册 - iOS设备测试KIF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 08:45