
Explore how to locate web elements using XPath and CSS selectors for automation testing and regression testing, with live examples and tools like Selenium WebDriver, Cypress, and Playwright.
Explore inspect techniques and HTML structure, attributes, and common tags like doctype, HTML, head, body, and img. Build a sample page with headings, forms, tables, and iframes to illustrate markup.
Compare XML and HTML, discuss XML basics and XHTML comparison, and show how XPath works on both XML and HTML documents for automation testing.
Discover how to inspect any web page element across Chrome, Safari, and Firefox using dev tools, view the DOM, and highlight elements with keyboard shortcuts.
Learn how to use general locators—ID, name, class, link text, partial link text, and tag name—in Selenium WebDriver, with examples and handling for non-unique or missing elements.
Discover how to locate XPath and CSS selectors using Chrome extensions and built-in dev tools, and learn to generate relative XPath for dynamic elements.
Learn XPath basics to locate HTML and XML elements using attributes and text, validate selectors in the browser console, and apply them in Selenium WebDriver scripts for automation testing.
Master absolute and relative XPath for automation testing, contrast root-to-element absolute paths with landmark-based relative paths that start with single vs double slashes, and learn to craft robust, unique selectors.
Master XPath techniques with logical operators, indexing, and chaining to locate elements among multiple candidates, using attributes like id, name, and class, and apply wildcards for flexible searches.
Learn how to handle dynamic elements in XPath using starts-with and contains to separate dynamic parts from static parts, avoiding brittle absolute paths.
Explore XPath axes to locate web elements, including following, preceding, and siblings. Use child, parent, descendant, and ancestor axes, with self and ancestor-or-self or descendant-or-self, to navigate the DOM.
Learn to write CSS selectors for single or multiple elements using id, class, tag name, and attribute values, with dot and hash notation and guidance on spaces in class values.
learn to handle dynamic elements in css selectors by using caret, dollar, and asterisk operators to match starting, ending, or containing class attribute values for robust automation testing.
Learn to select sibling nodes with css selectors and xpath by using the plus operator to target the next sibling by tag, and apply dot notation for class attributes.
Learn to identify direct and sub children using css selectors, applying the greater-than and space operators, and practice nth, first, and last child concepts on sections with divs and buttons.
Learn how to use CSS selectors to target child nodes—first-child, last-child, and nth-child—by inspecting a section with eight button children and selecting via its class.
Demonstrates using XPath and CSS selector in Selenium WebDriver scripts to fetch headset name, price, and color, hover to reveal color, and click add to cart across two products.
Explore how to use XPath and CSS selectors in Playwright to extract product name, price, and color from a product page, and run a script to print details.
Explore using CSS selectors in the Cypress automation tool with a product detail example that prints the product name and price and runs an end-to-end test in Chrome.
Basic to Advance XPath and CSS Selectors Master Classes.
Locators by ID/Class/Name + XPATH + CSS SELECTORS + HTML + XML + Selector Hub+Relative Xpath Finder + Selenium WebDriver
Get free downloadable playwright framework as a bonus.
This course covers all the topics you need to learn XPath & CSS Selector without having any prior knowledge of any programming language, tool or extensions.
While starting as new automation tester or even after having knowledge of automation tools (selenium Web Driver, Cypress, Playwright etc.) , This is the most challenging part in automation that how to locate any element if it is changing its attribute value each time or complexity in getting unique locator of element or it has complex structure or any reason..
This Course includes all the solution of these problems.
Concepts covered with live examples-
Locating Elements By Class, ID, Name, Link Text, Partial Link Text
Hands on Exercises on Locaters with live examples
XPath - Basics & Advanced
XPath - Handling Dynamic elements
XPath Axes (Element Relationships)
CSS Selectors - Basics
CSS Selectors - Advanced (Child and Sibling nodes)
Chrome Extensions to create Locators - Selector Hub, Relative XPath finder etc.
Use of Browser's Developer tool to inspect and validate the elements locator
HTML DOM Structure Basics
XML basics
Do a Hands-on exercises after taking each sessions in this course. Please feel free to contact me for any query.
All The Best and Happy learning!