在iOS模拟器中双击不起作用 [英] Double tap in IOS Simulator Not working

查看:272
本文介绍了在iOS模拟器中双击不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用appium在iOS模拟器中double tap的一个元素,但是不能这样做.

I am trying to double tap an element in IOS Simulator using appium but unable to do so.

Methods tried:

action.tap(x=xx, y=yy, count=1).release().perform() 

连续2次,但似乎有2秒的间隔,在现实世界中这不是两次敲击

2 times in a row,but it seems there is a 2 second gap which in real world would not be a double tap

element.click 

与上述相同的问题

action.press(x=xx, y=yy).wait(500).release().perform().press(x=0, y=0).wait(500).perform() 

没有结果

action.tap(x=xx, y=yy, count=2).release().perform()

没有结果.

还有什么我可以尝试的方法,或者可以在ios上使用的任何其他方法吗?

Is there any thing else i can try or any other method which works on ios.

推荐答案

我以类似的方式调用您列出的第一个方法,它的速度不如双击快,但延迟不到一秒钟 Appium::TouchAction.new.tap(x: xx, y: yy, count: 2).perform

I call it in a similar way the first method you listed, its not as fast as double tap, but its less than one second delay Appium::TouchAction.new.tap(x: xx, y: yy, count: 2).perform

.tap不需要使用release,只有.press需要

.tap dont need to use release, only .press need it

这篇关于在iOS模拟器中双击不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆