Question

I am trying to get a button's status to see if it is highlighted or not, but I cannot find such method in iOS UIAutomation, can anyone help?

I tried button().value(), but it return 1 if it is last accessed, and return null if it is not.

Was it helpful?

Solution

UIAutomation exposes only a limited set of properties as described in their reference

Out of the box, you can check stuff like isEnabled, isVisible, etc

You can check this SO post for tweaking stuff How to check element properties in iOS gui automation?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top