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

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

问题描述

我正在尝试使用 appium 在 IOS 模拟器中双击一个元素,但无法这样做.

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需要

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

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