This presentation on XPath functions is a continuation of the previous post - All about XPath.
Topics covered in detail include all the XPath functions:
- text()
- normalize-space()
- contains()
- following-sibling()
- preceding-sibling()
- descendent()
These functions are mainly used to handle dynamic web elements. Of the above, text(), contains(), following-sibling() and even descendent() are widely used while handling dynamic web elements. When I say, dynamic it means that the location of a web element may change in future when there is a change in requirement, but your automation script can still handle it when you use XPath functions such as following-sibling().
No comments:
Post a Comment