HomeSelenium

Selenium Interview Question 2 – What are Locators, different types of locators and their priorities?

Selenium Interview Question 2 – What are Locators, different types of locators and their priorities?

<<Previous Question       <<1500 Plus Interview Questions>>       Next Question>>

What are Locators, different types of locators and their priorities?

Watch the answer for this Selenium Interview Question in a detailed manner in the below youtube video:

Note: Don’t forget to subscribe to my Youtube channel.

Notes used for explanation in this Youtube video are provided after the video:

Notes used in the above Youtube Video:

What are Locators?

  • > Locators help Selenium in finding the UI elements on the Web Page

Selenium and Locators

 

 

  • > We can use these locators in the Test Automation code for locating the UI elements on the web pages

What are the different types of locators that can be used in Selenium

The following are the different types of locators we can use in Selenium:

  • > ID
  • > Name
  • > Class Name
  • > Link Text or Partial Link Text
  • > CSS Selectors
  • > XPath Expressions
  • > DOM

What is the order or priority in which we have to choose the locators?

The below is the priority order in which we need to select and use the locators:

Selenium Locators Priority

Next Steps:

  • > For more Selenium Interview Questions and answers, continue to the next post (Click on Next Post link below)
  • > Check complete Selenium Interview Questions list here (Click here)

Please leave your questions/comments/feedback below.

Happy Learning ?

About Me > Arun Motoori

<<Previous Question       <<1500 Plus Interview Questions>>       Next Question>>

On a mission to contribute to the Software Testing Community in all possible ways.

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *

For FREE Testing Tutorials & Videos

X
Open chat
Contact Us on Whatsapp