I wanted to get the resource identifier and description of the contents of the android elements at runtime.
I tried this:
myElement.getAttribute("resource-id")
myElement.getAttribute("content-desc")
but getting an error like " this element does not have the resource-id attribute".
Is there any way to get this?
source
share