How to get the relative x-Path of an element in Appium Inspector?

How to get the relative x-Path of an element in Appium Inspector?

Hello Mark,

In any of the inspector tools, you will get the absolute xPath of an element as that is fixed. In the case of the relative path that can be defined in multiple ways as per their attribute values.