In continuation of the previous articles on Relative XPath Expressions, I am going to explain the usage of XPath Functions as part of XPath Expressions in this article.
- > Refer previous articles on Relative XPath Expressions
Let’s get started.
Selenium Locators – XPath Functions
The following are the different XPath functions that are generally used in Selenium:
Apart from the above listed functions, we have below functions in XPath that we don’t generally use in Selenium:
As already mentioned, we don’t have to learn all the functions listed above, intead we should only learn the first five functions as part of Selenium (i.e. text(), contains(), starts-with(), last() and position())
I will practically demonstrate all these required 5 functions of XPath in the next article.
- > 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.