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.

有帮助吗?

解决方案

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?

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top