Google News
logo
Selenium - Interview Questions
Relative Locators in Selenium 4.
Selenium 4 brings an easy way of locating elements with the inclusion of relative locators. This means testers can now locate specific web elements using intuitive terms that are often used by users like:
 
* To left of
* To right of
* Above
* Below

The introduction of this new method in Selenium 4 helps locate web elements based on the visual location relative to other DOM elements.
Advertisement