Repository navigation
Replies: 1 comment
|
No. The only way you'd achieve this is by passing it in as an env at launch time. At which point you'd probably just use a tag. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there a supported way to detect the current Android form factor directly inside a Maestro flow at runtime?
Use case:
phone -> run one flow
tablet -> run another flow
foldable open -> run another flow
foldable closed -> run another flow
phone + portrait -> run another flow
tablet + landscape -> run another flow
I want this to be detected during test execution, without passing CLI env variables manually and without relying on fragile UI-specific markers if possible.
I could not find a built-in way to read device/layout properties such as screen size, smallest width, window metrics, configurations or fold state.
Is there a recommended built-in approach for this in Maestro?
All reactions