There are multiple ways to find an element for native and hybrid apps, such as UIAutomatorviewer (for Android only) and Appium Inspector (for both Android and iOS). Let's start with the uiautomator.
We can find the UIAutomatorviewer in the Android SDK folder
C:\android-sdk\tools (assuming that the SDK located in the C drive); you can find the same in Mac as well under the
tools folder, as shown in the following screenshot:
uiautomatorviewer, you need to double-click on it. You will get the following screen:
Now, we are going to take an example of finding an element ...