Selenium XPath Tutorial #9 – Axes Methods | ancestor, ancestor-or-self

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

XPath axes ancestor method helps in selecting all the ancestor nodes of the current node.

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

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.