Explain how to find DOM element or XPath in a mobile application?

To find the DOM element use "UIAutomateviewer" to find DOM element for Android application.


  • Connect your Phone or Emulator with Appium desktop client.
  • Start Inspect Session.
  • Start session by specifying capabilities for device - deviceName, platformName, automationName, appPackage, appActivity.
  • Click on select element icon once app launched.
  • Locator will be displayed in Selected Element section.