mobile-dev-inc / maestro

Painless Mobile UI Automation
https://maestro.mobile.dev/
Apache License 2.0
5.88k stars 281 forks source link

Ability to interact with elements outside the visible viewport (no scrolling needed) #2132

Open ka9s2d opened 1 week ago

ka9s2d commented 1 week ago

Use case

I am transitioning from Cypress to [insert framework/library you're using] and encountered a limitation when testing views that are positioned outside the initial viewport (specifically at the bottom of the screen). In Cypress, I was able to click and assert the visibility of elements even if they were not visible to the user without needing to scroll the page.

However, in my current testing setup, I need to scroll down to make these elements visible, and I'd like to know if there is an equivalent feature or method for interacting with elements outside the user's immediate screen, such as clicking or verifying their existence without requiring scroll actions.

android-jetback compose

Proposal

Expected Behavior:

It would be ideal to have a way to directly interact with and verify elements even if they are outside the current viewport (e.g., below the fold) without needing to scroll or move the page.

Current Behavior:

Currently, the framework requires scrolling down to bring elements into view before they can be interacted with or verified.

Steps to Reproduce:

Load a page with an element located at the bottom of the screen (below the fold). Attempt to click or verify the element without scrolling. Notice that the framework requires scrolling to interact with the element. Environment:

Anything else?

❤️

linear[bot] commented 1 week ago

MA-2539 Ability to interact with elements outside the visible viewport (no scrolling needed)