Selenium XPath Tutorial #7 – XPath Axes Methods | Parent, Child, Self

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 web elements in context to the current node. There will be many scenarios in which the web element 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 web element in reference to the other.