
Asked in Capgemini and 12 others
What is meant by a locator, and what are some different types of locators present in Selenium?

AnswerBot
2mo
Selenium uses various locators to identify web elements for automation testing, enhancing precision and flexibility.
ID: Selects elements by their unique ID attribute. Example: driver.findElement(By.id...read more
Shrinath Rao
2y
Xpath, css path, id, class etc
venuthurla kusuma
2y
8 types of locators in selenium.they are id,class,name,tag,link text,partial link text,xparhs,css locator
Nirmala A
4y
1.Id
2.Name
3.ClassName
4.LinkedText
5.Text
6.Xpath
7.Css
Add answer anonymously...
Interview Questions from Popular Companies

3.7
• 8.8k Interviews

4.0
• 5.5k Interviews

3.5
• 4.2k Interviews

3.6
• 8k Interviews

3.7
• 6k Interviews

3.7
• 6.2k Interviews

3.5
• 4.2k Interviews

3.7
• 5.1k Interviews
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

