mobile-dev-inc / maestro

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

Can you add a Command so that I can get all the elements of the current page, and I can clearly perform some logic according to the results? #2148

Open ReverseScale opened 2 days ago

ReverseScale commented 2 days ago

Use case

I know maestro query [text=regex] [id=regex], but I want to use it in the script.

Proposal

It can be explicitly known whether there is an element.

Anything else?

No response

linear[bot] commented 2 days ago

MA-2589 Can you add a Command so that I can get all the elements of the current page, and I can clearly perform some logic according to the results?