DEV Community

Cover image for What Are Relative Locators In Selenium 4๐Ÿ”—| Selenium WebDriver 4
LambdaTest Team
LambdaTest Team

Posted on • Originally published at youtube.com

What Are Relative Locators In Selenium 4๐Ÿ”—| Selenium WebDriver 4

In this video on Relative Locators in Selenium 4, Anton Angelov (@angelovstanton) - CTO and Co-founder of Automate The Planet Ltd, explains relative locators, their types and how developers can use them while performing Selenium automation testing.

๐Ÿ“ŒAlso, you will get answer to these questions๐Ÿ“ƒ

๐Ÿ”ธ What are relative locators?
๐Ÿ”ธ What are the different locators in Selenium?
๐Ÿ”ธ What is the purpose of locators in Selenium?
๐Ÿ”ธ How do you use relative locators?
๐Ÿ”ธ Can we use multiple locators in Selenium?
๐Ÿ”ธ Which locator is faster in Selenium?

๐Ÿ“ฃ The โ€œRelative Locatorโ€ options available in Selenium automation testing are as follows:
โ—พ above: Web element to be searched/located appears above the specified element.
โ—พ below: Web element to be searched/located appears below the specified element.
โ—พ toLeftOf: Web element to be searched/located appears to the left of the specified element.
โ—พ toRightOf: Web element to be searched/located appears to the right of the specified element.
โ—พ near: Web element to be searched/located is at most 50 pixels away from the specified element.

Top comments (0)