Search code examples
androidseleniumappium

How to verify xpath in real android device using uiautomator like 22571267


How to verify XPath in real android device using uiautomator?

Basically we verify XPath in Chrome using inspect element (see 22571267)

Is there any way to do this for an Android device?


Solution

  • You can use appium inspector for getting

    1. Exact xpath or id for the selected node
    2. You can even try tap,sendKeys to test your xpath.
    3. Recorder facility
    4. Inspector to inspect each individual element like chrome inspector

    enter image description here

    If you want to learn how to use it in detail follow this link