Selenium XPath Tutorial #8 -Axes Method descendant, descendant-or-self

In this Selenium Xpath tutorial we will learn about Xpath axes method descendant and descendant-or-self with examples.

XPath axes descendant method help in selecting all the descendant nodes of the current node.

XPath axes descendant-or-self method helps in selecting current node as well as all the descendant nodes of current node. Watch the full tutorial to understand xpath axes descendant methods with examples.

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.