使用Xcuitest进行多指滑动
我正在使用一个支持用多脚架滑动手势的应用程序(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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,直到我们对此进行了特定的呼吁,才有解决方案。现有的手势都是同步的,因此您不能同时模拟单个手指。
有捏和旋转的功能,但不能让它们做您想要的事情。
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.