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)