We read about Appium inspector briefly in Chapter 3, Writing Your First Appium Test, to find out the element we want to click on. It's a handy tool for element discovery and understating the hierarchy. Let's take a thorough look at Appium inspector and the possibilities it opens for us. Let's launch the Appium inspector by following these steps:
- Launch the emulator.
- Ensure that the Quikr app is installed on the emulator.
- Click on the
Android Settings
icon in the Appium app, select thePackage
ascom.quikr
, and select theLaunch Activity
asc
om.quikr.old.SplashActivity
. (Refer Appendix to learn to find out Package Name and Launch Activity) - Select the
Platform Name
asAndroid
,Automation Name
asAppium
, and thePlatform Version
as5.1 Lollipop (API Level 22)
. - Check the
Device Name
box and enterNexus
. - Click on the
Launch
button. - Once the Appium console shows the following output, click on the
Appium Inspector
icon:
[HTTP] --> GET /wd/hub/status {} [MJSONWP] Calling AppiumDriver...