How to check that checkbox is selected in iOS without attribute checked

i had checkbox but the type is button
i want to verify assertion that this button is checked

attributes are
[{“key”:“elementId”,“value”:“9F010000-0000-0000-330B-000000000000”,“name”:“elementId”},{“key”:“type”,“value”:“XCUIElementTypeButton”,“name”:“type”},{“key”:“enabled”,“value”:“true”,“name”:“enabled”},{“key”:“visible”,“value”:“true”,“name”:“visible”},{“key”:“x”,“value”:“354”,“name”:“x”},{“key”:“y”,“value”:“396”,“name”:“y”},{“key”:“width”,“value”:“20”,“name”:“width”},{“key”:“height”,“value”:“21”,“name”:“height”}]

This is all as app developers writing code. If you do not see difference between checked/not-checked -> ask ios developers to change this.

but the problem that all app take this behaviour , i can not find any differences of any attributes
but how attributes did not change after checking ??

when i discussed with developers >> they told me that they have not any control to add attributes or changed attributes

Nothing we can do if no changes. Only developer can make them differ.

You may ask again what button attribute change in native XCUItest. Nothing = Appium sees same.

1 Like