In our earlier tutorial, we got a basic Introduction to XPath. In this tutorial, let us try to explore some of the Advanced XPath Concepts which can help you find robust locators while writing your automation scripts.
As introduced in earlier tutorial, Axes are used in XPath to locate the nodes based on their relationship with respect to another node. Here are the common axes keywords.
There are 2 logical operators: and, or
The various comparison operators used in XPath are listed below:
There are a lot of functions available in XPath, some of the functions commonly used by Test Automation Engineers are listed below:
Previous Chapter Understanding XPath
Fully customizable CRM Software for Freelancers and Small Businesses