Repository navigation
Find the status of a button or if it's changed? #1620
Replies: 1 comment
|
Hi @jpmorrison Current Maestro can check several functional states directly with state selectors: - assertVisible:
text: "Pool"
enabled: trueAvailable state selectors include:
You also should not normally need to convert - tapOn:
text: "Pool"so moving the button around between devices is fine as long as it remains exposed through the accessibility hierarchy. If by "status" you mean something purely visual — for example the button changes color but exposes no corresponding accessibility state/text — Maestro cannot infer an arbitrary semantic status from the color. In that case, ideally expose that state through accessibility semantics/text, or use screenshot assertions if visual appearance itself is what you need to test. If Please mark this answer as accepted if it helped, thank you. |
Uh oh!
There was an error while loading. Please reload this page.
I can tapOn a button and I think I can assertVisible on the button text (Pool) but I want to find status of the button.
Is there any way to do this without access to the app source code?
The button is movable and it might be missing or there could be other buttons representing other devices.
I tried tapOn "Pool" but it doesn't work. It would be really nice to lookup the text to find the point: 13%,42%
All reactions