How to create a xpath


I"m new to appium and I’m trying to create xpath but I was unable to create. Can anyone say me how to create a xpath with an clear explanation. Thanks

Hi you can just use hardcoded xpath from appium inspector

Also check topics: Xpath syntax and Xpath axes and second axes link

You can create flexible xpath via xpath axes for your needs.