Can appium access the source tag on Android?

Our product a text field on the screen to indicate when a particular task is done. I’d like to detect this done state, except I’d also like to avoid using text as that prevents testing in other languages.

One of our developers suggested we could use the source tag and text tag for Image and Text view:

http://developer.android.com/reference/android/widget/ImageView.html#attr_android:src
http://developer.android.com/reference/android/widget/TextView.html#attr_android:text

Does anyone know if there’s a way of accessing this through Appium?

Use a content description (this can be set dynamically), a resource id, or a strings.xml id. All 3 approaches are language independent.

In terms of what attributes are available on Android, if you can’t see it in uiautomatorviewer then the answer is likely no.

1 Like

That was my suspicion. Thanks.