
Develop effective selectors to power robust, efficient test automation frameworks across selenium, webdriver io, and cyprus, enabling reliable interaction with web elements such as buttons.
Learn why optimizing selectors and locators strengthens automated tests across technologies like Selenium and Cypress, reducing brittleness when developers change web elements.
Explore methods to build effective selectors for automated tests by using a practice website with diverse web elements, including buttons, tables, breadcrumbs, and styled links.
Explore the document object model and html basics, then inspect elements with browser developer tools. Learn tags, opening and closing tags, classes, ids, and parent and child relationships for selectors.
Explore how to use Chrome developer tools to inspect elements, view HTML source, and identify tags, classes, and IDs for precise selectors in automation testing.
Compare CSS and XPath selectors for locating web elements, highlighting when to use id attributes and the trade-offs in traversal, performance, and browser consistency.
Explore practical XPath and CSS selectors in automation testing, using // and /, attributes, and ids to locate elements and build efficient, reliable selectors.
Explore using the Chrome extension Runner X Velocity to generate selectors, copy XPath, and learn manual techniques for crafting robust selectors in automation testing.
Learn to locate web elements with css selectors—tag, class, and id—and contrast robust class and id selectors with lengthy absolute selectors in practical testing using Chrome developer tools.
Explore descendant and direct descendant selectors with examples using ul and li, showing how to select all descendants under a parent or only direct children one level down.
Explore adjacent and far sibling selectors to locate web elements by sharing the same parent, using plus for adjacency and following for far siblings, with practical HTML examples.
Identify and locate elements containing two or more classes using dot notation, explore combining class and id selectors, and navigate nested elements to target forms and controls in automation testing.
Explore how to locate web elements using exact, ends with, begins with, and contains selectors based on attribute values, with practical examples on checkboxes and inputs in chrome dev tools.
Learn to locate web elements by state with selectors for disabled, enabled, and checked. The lecture shows radio buttons named vegetable and filtering by state to verify selections.
Explore how to locate web elements by order using nth-child, nth-last-child, and nth-of-type, applying even, odd, and last-child selectors to target list items and buttons.
Apply first-child and last-child selectors to target web elements by class attributes, using contains checks to locate elements with beta in their class, enhancing automation testing precision.
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:
How to identify selectors/ locators like a pro
Understand the difference between the different types of locators
The best approach to identify them
How to write your own custom locators
How to prepare for interview questions relating to selectors/ locators
How to gain confidence in writing selectors/ locators so you do not need to rely on tools
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!