Detox icon indicating copy to clipboard operation
Detox copied to clipboard

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

Open d4vidi opened this issue 1 year ago • 2 comments

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 avatar Jan 10 '24 11:01 d4vidi

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.

stale[bot] avatar Mar 17 '24 08:03 stale[bot]

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? 👀

kirillzyusko avatar Jul 16 '24 14:07 kirillzyusko