1

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?

Arnaud
  • 7,259
  • 10
  • 50
  • 71
  • as far as i know, you can verify the xpath's while debugging, you can try out different xpaths there. The browser like facility is not there in appium inspector. – Suraj Jogdand Aug 22 '18 at 10:58

1 Answers1

1

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

Amit Jain
  • 4,389
  • 2
  • 18
  • 21