Course Content
Testing Tools
Testing Tools
0/1
Sample Python Programs
Sample Python Programs
0/1
Selenium Python First Script
Selenium Python First Script
0/2
HTML Form elements
HTML Form elements
0/1
Handle HTML Frames
Handle HTML Frames
0/2
Handling Dropdown Lists
Handling Dropdown Lists
0/2
Selenium Action class
Selenium Action class
0/1
Python Database Programming
Python Database Programming
0/1
Selenium Python for Beginners [ 2024 ]
About Lesson

What is a Locator?

Let’s understand the concept of locators in Selenium. Locators enable you to interact with the web page through its elements. 

A web page consists of many web elements, such as links, buttons, text boxes, etc., with which the user interacts with the web application. 

In Automation testing, you must identify and act on the object to perform a particular task in the script. 

A locator is a technique for identifying objects on the web page under test. It is important to use an appropriate locator. Selenium provides many different location strategies and techniques. While each locator does serve its purpose, each has its pros and cons.