In this Selenium XPath tutorial we will learn about XPath Axes methods Parent, Child and Self.
Xpath axes methods are very helpful in finding the webelements in context to the current node. There will be many scenarios in which the webelement you want to select does not have any unique attributes to define the XPATH, in those scenarios you can use the Axes methods to find that webelement in reference to the other.