Locator strategies for Android with UiAutomator2


#1

When I use Appium inspector to find an element’s id it shows a resource id but when I use the record feature it’s only showing the xpath. Why is this? This leads me to ask if anyone knows any locator strategies for UiAutomator2 or if anyone has any good sources they’d like to share?

Any comments would be greatly appreciated! Thanks! :slight_smile: