O'Reilly logo

Appium Essentials by Manoj Hans

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Finding elements for native and hybrid apps

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.

Finding elements with UIAutomatorviewer

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:

Finding elements with UIAutomatorviewer

To open 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required