Selenium XPath Tutorial #11 – XPath Axes preceding, preceding-sibling

In this Selenium XPath tutorial we will learn about XPath axes methods “preceding” and “preceding-sibling” with examples.

XPath axes “preceding” method help in selecting all the nodes that appear before the context (Current) node.

XPath axes “preceding-sibling” method helps in selecting all the nodes that have the same parent as the context (Current) node and appear before the context (Current) node.

Leave a Reply

Your email address will not be published.

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