Introduce device.tap(point), device.longPress(point) API's
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
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.
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? 👀