XPath Axes is a concept that makes the XPath Expressions powerful and unbeatable in locating the UI elements out of all the locator types.
We generally go with the XPath Axes in the XPath Expressions when we want to locate the required UI elements with the help of id/name/class name attribute values of the other UI elements. Here the other UI elements may be grandparent/parent/sibling/child/grandchild of the required UI elements to be located.
Before I practically demonstrate using different XPath Axes for locating the UI elements, I will first list down the XPath Axes available as part of this article.
The following are the different XPath Axes available:
Out of all the above available XPath Axes, the below will be enough for our learning in Selenium:
Here concludes this article.
In the next article, I will start explaining the first XPath AXES – following
- > To learn more about Selenium, continue to the next post (Click on Next Post link below)
- > Check complete Selenium Tutorial Contents here (Click here)
Please leave your questions/comments/feedback below.
Happy Learning 🙂
On a mission to contribute to the Software Testing Community in all possible ways.