When testing native mobile apps on mobile simulator/emulator/ device,identifying the element locator is very important. We can use Selendroid Inspectors to view element definition and its hierarchy.
Selendroid Inspector is a ittle web app that is embedded inside your selendroid test server. It allows you to inspect the current state of your mobile app’s UI.
Selendroid Inspector has features:
(1) View hierarchy
(2) View UI element properties
(3) UI screenshot with view locator
(4) Record the click actions
(5)Display the source html of a web view
(6) XPath helper
In this article, you will learn how to use the Selendroid Inspector to view a mobile app elements and run the test. You can find the tutorial on this site location (http://selendroid.io/inspector.html).
Important: Selenium mobile app test requires that android-sdk must be installed and configured properly on your computer, so you need to make sure that android-sdk environment was setup on your computer in advance. If you need help, please visit the site http://selendroid.io/setup.html.
Step 1: download Selendroid jar file and test mobile app.