使用Xcuitest进行多指滑动

发布于 2025-01-25 01:23:05 字数 172 浏览 5 评论 0原文

我正在使用一个支持用多脚架滑动手势的应用程序(2个手指向下滑动等),并希望在Xcuitests中模拟它。我看到Xcuielement包含一堆诸如SwipeUp()和Swipeleft()之类的功能,但是它们都只能使用单个手指。例如,我看不到其他任何API,例如,它们将允许模拟两指向下滑动。

有人知道这样做的方法吗?

I am working with an app that supports swipe gestures with multi-fingers (2 finger down swipe, etc.), and would like to simulate this in XCUITests. I see that XCUIElement contains a bunch of functions like SwipeUp() and SwipeLeft(), however they all see to be for only single fingers. I don't see any other APIs that look like they would allow simulating a two-finger down swipe, for instance.

Does anyone know of a way to do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

棒棒糖 2025-02-01 01:23:05

不幸的是,直到我们对此进行了特定的呼吁,才有解决方案。现有的手势都是同步的,因此您不能同时模拟单个手指。

有捏和旋转的功能,但不能让它们做您想要的事情。

Unfortunately, there isn’t a solution for this until we’re given a specific call for it; the existing gestures are all synchronous so you can’t simulate individual fingers doing different things at the same time.

There are pinch and rotate functions, but they can’t be made to do what you’re looking for.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文