Hiya champs! Welcome to our final post on locating elements. Yay!!!
This is a continuation from our previous post, “9n. WebDriver – Locating elements: Part 4a (by XPath)”. You have heard me say this before and you will hear me say it again… read Part 4a before going any further for a complete grip on using XPath strategies.
In this post, we will be looking into the below techniques,
- Using Text()
- Using starts-with()
- Using XPath axes
These techniques along with the ones we saw in part 4a, can be combined and used to form an effective XPath that can locate any element on the web page. Time to walk through today’s techniques with examples.