I have been ramaging through this for a couple of hours now.
I have a UiObject element for which I need to find the value of the index attribute. The UiObject element only exposes methods to extract information like Text, ContentDescription, Bounds, Classname, etc. but not index.
I had a similar problem with resourceID and I was able to solve it using Java reflection to extract the same during runtime. The solution is here. I wanted to use a similar approach but AccessibilityNodeInfo doesn't expose that information.
Does anyone know of a solution or something similar to retrieve the index information from a UiObject?
Aucun commentaire:
Enregistrer un commentaire