Selenium Web Driver Locators

How many locators are there in Selenium web driver?

Questions by akhilandeswari   answers by akhilandeswari

Showing Answers 1 - 9 of 9 Answers

Bareddy

  • Jan 2nd, 2016
 

There are 8 different locators are using which webdriver can identify the elements present on the web application. There are
1. Id()
2. Name()
3. ClassName()
4. LinkText()
5. PartialLinkTest()
6. xpath().
7. Cssselector()
8. tagname()

  Was this answer useful?  Yes

eswar

  • Feb 1st, 2016
 

x-Path

  Was this answer useful?  Yes

Mohit

  • Jan 15th, 2018
 

In selenium there are 8 selectors and all the selectors are static methods of By class(abstract).
1.tagName
2.id
3.name
4.className
5.linkText
6.partialLinkText
7.cssSelector
8.xpath

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions