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

Introduce device.tap(point), device.longPress(point) API's #4331

Closed
d4vidi opened this issue Jan 10, 2024 · 2 comments · Fixed by #4542
Closed

Introduce device.tap(point), device.longPress(point) API's #4331

d4vidi opened this issue Jan 10, 2024 · 2 comments · Fixed by #4542

Comments

@d4vidi
Copy link
Collaborator

d4vidi commented Jan 10, 2024

Describe your idea

Introduce API's for iOS for tapping/long-pressing at screen coordinates, so as to allow for tapping/pressing on view's that are adjacent to easy-to-match views (as in one internal use case).

In conjunction with getAttributes(), it can be fairly easy to calculate the coordinates in a fairly precise, stable (cross-device) way.

Note: On Android, this would be a wrapper around device.getUiDevice().click(x, y)for the tap case. Long-press, however, remains a TBD.

@ArtiomBodilovski

@d4vidi d4vidi changed the title Add a tap({x, y}) equivalent to longPress() Add a longPress({x, y}) equivalent to tap(point) Jan 10, 2024
@d4vidi d4vidi changed the title Add a longPress({x, y}) equivalent to tap(point) Introduce a device.tap(point) API Jan 11, 2024
@d4vidi d4vidi changed the title Introduce a device.tap(point) API Introduce device.tap(point), device.longPress(point) API's Jan 11, 2024
Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.

Thank you for your contributions!

For more information on bots in this repository, read this discussion.

@kirillzyusko
Copy link
Contributor

I'd love to see a support for this API 😍

@asafkorem do you have any ETA when it'll be available? Or you guys are working on other tasks and it's not in priority at the moment? 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants