Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] 缺少长按不松手、拖拽元素到指定位置等相关操作 #126

Closed
2 tasks done
YeungHoiChiu opened this issue May 28, 2024 · 0 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@YeungHoiChiu
Copy link
Contributor

Search before asking

  • I searched in the issue and found nothing similar. | 我查找了并确认issue列表无相似报告。

Sonic version

v2.6.4

Deploy platform

Linux centos 7

Minimal reproduce step

需求背景

  • 因为我们主营业务是小程序,做小程序测试时测试不同业务场景需要删除最近使用小程序以清除应用缓存
  • 另外有一些使用场景可能需要长按之后才会显示拖动的终点元素,所以也需要长按不松手的操作

uia2-server的api提供了这些接口

// 拖拽,不同于普通滑动
register(postHandler, new Drag("/session/:sessionId/touch/drag"));
// 长按,没有时间限制
register(postHandler, new TouchDown("/session/:sessionId/touch/down"));
// 松手
register(postHandler, new TouchUp("/session/:sessionId/touch/up"));
//  类似手指移动到指定目标,与上两个操作配合起来也可以实现长按拖拽操作
register(postHandler, new TouchMove("/session/:sessionId/touch/move"));

Are you willing to submit a PR?

  • I'm willing to submit a PR! | 我将发起PR!
@YeungHoiChiu YeungHoiChiu added the bug Something isn't working label May 28, 2024
@YeungHoiChiu YeungHoiChiu changed the title [Feature] 缺少长按不松手、长按再拖拽等操作 [Feature] 缺少长按不松手、拖拽元素到指定位置等相关操作 May 28, 2024
ZhouYixun added a commit that referenced this issue May 29, 2024
feat: Resolves #126 - 增加拖拽、以及三个touch操作(仅安卓)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant