bestcourses is supported by learners. When you buy through links on our website, we may earn an affiliate commission. Learn more

XPATH and CSS locators for Selenium

This course will help you to find and optimize XPATH and CSS locators for your automation tests

4.2 / 5.0
1155 students1 hours 30 minutes

Created by Ostap Elyashevskyy, offered on Udemy

bestcourses score™

Student feedback


To make sure that we score courses properly, we pay a lot of attention to the reviews students leave on courses and how many students are taking a course in the first place. This course has a total of 1155 students which left 25 reviews at an average rating of 4.2, which is below the average.

Course length


We analyze course length to see if courses cover all important aspects of a topic, taking into account how long the course is compared to the category average. This course has a length of 1 hours 30 minutes, which is pretty short. This might not be a bad thing, but we've found that longer courses are often more detailed & comprehensive. The average course length for this entire category is 7 hours 30 minutes.

Overall score


This course currently has a bestcourses score of 4.9/10, which makes it an average course. Overall, there are probably better courses available for this topic on our platform.


About me

My name is Ostap I have more than 12 years of experience in test automation. I have prepared a short but well-structured and informative course about XPATH, and CSS locators. It will be helpful for beginner and developing test automation engineers who want to use stable and optimal locators for their tests. If you work with web or mobile applications - you know that finding a good and stable locator can cost you a lot of time and effort and even that does not guarantee that the locator will work after some changes in DOM. This course will help you to understand and get some experience working with locators.

You will find answers to the following questions:

- what is a locator?

- why do we need locators?

- what is the difference between XPATH and CSS?

- how to find and verify locators?

- how to use Dev Tools?

- how to use Dev Tools console to find XPATH and css locators?

- how to use the features and functions of XPATH?

- how to build locators using XPATH, CSS and other types of locators?

- how to find and optimize locators for complex elements

- how to search elements by text, partial text

- how to search using logical operators?

- how to search elements by children, ancestors, what is XPATH axis?

- why the relative path is better than the absolute?

What you will learn

  • You will learn how to build precise and stable XPATH and CSS locators for Selenium, Appium and other test automation tools where XPATH/CSS locators are used
  • How to use Chrome Dev tools
  • How to search by text, XPATH axes, child, other elements
  • How to search by CSS locators by attributes, partial values, how to find and verify locators
  • Which type of locator is the most powerful


  • There are no specific requirements, knowledge about locators can be used with different tools
Udemy logo
Available on


With almost 200,000 courses and close to 50 million students, Udemy is one of the most visited online learning platforms. Popular topics include software development, the digital economy, but also more traditional topics like cooking and music.

Frequently asked questions

  • Price: Free
  • Platform: Udemy
  • Language: English
  • 1 hours 30 minutes
XPATH and CSS locators for Selenium thumbnail

bestcourses score: 4.9/10

There might be better courses available for this topic.