Welcome back, we will cover XPath strategies today. This is an advanced and effective locating strategy as well (by cssSelectors was too!). While being effective, it can sometimes be confusing. So, let us delve on how to understand our often misunderstood friend and come up with the good code once for all.
Hiya testers! If you have been following my posts closely, you should already be a pro in entering text using Selenium WebDriver. If not(with a sad face), nothing to worry! I got you all covered. [Read more…]
Hi ninjas! This post is a continuation of our previous post, “9l. WebDriver – Locating elements: Part 3a (by cssSelector)”. Before going any further, please make sure you take a good look at it.
The last two ways of using cssSelector locators which are yet to be discussed are,
- Locating child elements
- Matching by sub-string
Without further ado, let’s get into action!
Hiya testers! Let us jump right into the cssSelector locating strategy.
What if we don’t have an option to locate an element using Id, class or name? Got anything up your sleeve? Well, I have one, cssSelectors. This is an advanced and effective strategy.
Hiya friends! Let us dive deeper today to look at a few more strategies for locating elements. In this post we will concentrate on locating by,