A-Z Selenium WebDriver Locators (CSS, Xpath, more)

person icon Yavor Tsanov

A-Z Selenium WebDriver Locators (CSS, Xpath, more)

Unique techniques to create impeccable selectors

updated on icon Updated on Oct, 2023

language icon Language - English

person icon Yavor Tsanov

architecture icon Selenium WebDriver,Software Testing,Development

Lectures -31

Duration -3 hours


30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 19,000+ top Tutorialspoint courses anytime, anywhere.

Course Description

Students will be perfectly equipped to find the best locator after acquiring the knowledge in this course. In this course students will learn a well defined and highly effective system to help them find the best locator for their needs. With easy set of rules to follow they will not need to change locators because they are flaky. Also, with this set of rules it will be easy to find the fastest and most powerful locator. This will help to reduce the execution time of the tests and avoid some common mistakes that slows them down and makes them easy to fail. This course provides the students with the knowledge for finding the best suitable locator between the most common locators like id, class, partial or full text,  Xpath and CSS. Also, students will be able to tell which locators are least likely to change and break over time and changes in the application/ website. Finally students will learn about how to find elements in the inspect elements tab, locator chaining, what is a search context, how to define search context, how to select a unique element between a list of equal elements in the HTML, what is a DOM Tree.


What will you learn in this course:

  • You will learn how to find and design the best possible Selenium locators and what makes them tick. What are the most frequent mistakes in choosing a selector and how to avoid them. You will learn about speed of each selector and how to find the best performing selector. What is chaining of selectors and how to do that in code or in the inspect elements tab. You will learn the most advanced xpath and css selectors.


What are the prerequisites for this course?

  • Some knowledge about Selenium WebDriver

A-Z Selenium WebDriver Locators (CSS, Xpath, more)


Check out the detailed breakdown of what’s inside the course

7 Lectures
  • play icon What are Selenium Selectors 03:05 03:05
  • play icon Basic selectors in Selenium 07:02 07:02
  • play icon Inspect elements tab 02:57 02:57
  • play icon The most important rules when choosing a selector Part1 05:34 05:34
  • play icon The most important rules when choosing a selector Part2 09:41 09:41
  • play icon Dom structure relationships explained 09:55 09:55
  • play icon Selectors and their speed 06:34 06:34
Xpath selectors
12 Lectures
CSS selectors
6 Lectures
Real life examples
6 Lectures

Instructor Details

user profile image

Yavor Tsanov

Course Certificate

User your certification to make a career change or to advance in your current career. Salaries are among the highest in the world.

sample Tutorialspoint certificate

Our students work
with the Best

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
People having fun around a laptop

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
People having fun around a laptop

Talk to us