Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Udemy

Mastering Selectors/ Locators for Automation Testing!

via Udemy

Overview

Master XPath, CSS selectors and more! - A core skill for Selenium Webdriver and all other forms of automation testing!

What you'll learn:
  • Understand XPath and CSS Selectors in detail
  • The different types of of XPath and CSS Selectors
  • Full understand how to construct XPath and CSS Selector when there is no unique attribute available
  • How XPath and CSS Selectors are used in Selenium
  • The different types of methods available with XPath and CSS Selectors
  • The differences between CSS and XPath selectors

Selectors/ locators is at the heart of automation testing. Learning how to identify them (without relying on tools) is a critical skill to becoming an automation tester.

Locators in Selenium, Cypress, WebdriverIO... can be referred to as one of the most critical components required to build effective and robust automaton tests, in turn making your tests become allot less Flaky. Its ideally the building block of all automation tests / scripts. It helps locate the GUI elements through which multiple user actions can be performed. These are one of the important parameters for scripting, and if they end up to be incorrect or brittle, they may lead to script failure. A good scripting base foundation requires elements to be located appropriately

Tools cannot be relied upon, as they do not often provide the most efficient selector/ locator available. Identifying selectors/ locators is also a common question asked in coding exercise during interviews.

This course teaches you:

  1. How to identify selectors/ locators like a pro

  2. Understand the difference between the different types of locators

  3. The best approach to identify them

  4. How to write your own custom locators

  5. How to prepare for interview questions relating to selectors/ locators

  6. How to gain confidence in writing selectors/ locators so you do not need to rely on tools

  7. And more

By the end of this course you will be able to confidently identify and write your own custom locators without needing to rely on tools. This will provide you with the confidence and knowledge to write high quality Selenium test scripts.

Come master this core skill, today!


Syllabus

  • Introduction - Selectors & Test Automation Frameworks
  • Why are Selectors / Locators so Important?
  • System Under Test - (SUT)
  • DOM & Elements
  • CSS vs XPath
  • Selector Tools
  • CSS Selectors - Introduction
  • CSS - Combinators
  • CSS - Attribute Selectors
  • CSS - Pseudo Classes
  • XPath - Introduction
  • XPath - Descendant Selectors
  • XPath - Attribute Selectors
  • XPath - Order Selectors
  • XPath - Sibling Selectors
  • XPath - Other Things
  • XPath - Indexing Selectors
  • Real World Examples

Taught by

Gianni Bruno

Reviews

4.6 rating at Udemy based on 327 ratings

Start your review of Mastering Selectors/ Locators for Automation Testing!

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.