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 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.