捏UITesting iOS - zoomOut无法正常工作

时间:2017-05-09 18:04:48

标签: ios swift xcode-ui-testing

我想通过UI测试自动化(验证)iOS中的GoogleMapView的zoomIn - zoomOut。

使用以下代码,我能够zoomIn(并且它正常工作):

mapView.pinch(withScale: 1.8, velocity: 1)

但我无法zoomOut,我尝试了以下选项:

mapView.pinch(withScale: 1.2, velocity: 1)(我以为这会缩小,因为之前的比例是1.8,但不是)

同时尝试使用(0,1)〜之间的值,但这只是移动地图(不是zoomIn)

mapView.pinch(withScale: 0.7, velocity: -1) mapView.pinch(withScale: 0.9, velocity: -0.9)

0 个答案:

没有答案