Support tapping on a point within an element #2059
Labels
bug
Something isn't working
maestro cli
Related to the command-line Maestro tool
P2
Important and valid issues not at the top of the work list
Note
To my surprise, this is documented as working, so maybe this should be a bug
https://maestro.mobile.dev/api-reference/commands/tapon#tapping-on-a-specific-point-within-another-element
Use case
Tapping on an element will automatically tap on the center of the element
This can lead to issues in cases where the element id refers to a large area that could have specific tap zones
Example: This whole area is tappable and has a single element id. However it contains links in the spannable text.
Other examples include needing to tap on specific areas of large images:
Proposal
Make it so that
Would tap on the left side of the selected element instead of the current behavior of simply ignoring the id
Anything else?
We might want to add it as a separate field
This is the related code
maestro/maestro-orchestra/src/main/java/maestro/orchestra/yaml/YamlFluentCommand.kt
Lines 472 to 497 in 21edc14
This should obviously work with any element selector, not just
id
Here's an e2e test
I thought this would do the trick but it does not behave as expected:
The text was updated successfully, but these errors were encountered: