
This section covers introduction of the instructor and also regarding anyone wanting to advance their knowledge or learn XPath from scratch will benefit by this course on XPath locators.
This lecture covers what learners will learn in this course and how to benefit maximum from this course.
This section covers what is the end goal when identifying a web element and how to inspect a web element using developer console.
In this lecture learners will get a brief description of what is HTML.It covers the basics what is needed for this course.
This lecture describes what is absolute XPath and what is relative XPath , their syntex and differences.
This lecture covers how to write simple XPath expressions for retrieving web elements in bulk and also by using one and multiple attributes, using index and other simple techniques.Also, a discussion on which web elements should be considered while writing XPath expressions.
In thi section ,learners will learn how to write XPath of element using its text and also how to write XPath based on attributes when the value of attributes are dynamically changing.
In this lecture , learners will learn about how to write XPath of web element using the text of child elements.
This lecture covers how to write XPath when white spaces surround text or attribute of web element.
This section explains regarding how to write XPath for different scenarios in web table like finding the Xpath of a row or a cell or finding all values from a column etc.
This lecture introduces XPath axes to students.And also learn about the common node relationships in a DOM tree.Also , students learn about the child , parent , ancestors and descendants relationships in detail.
In this lecture , students will learn regarding the other xpath axes like preceding-sibling, following-sibling, preceding and following etc.
This lesson illustrates one more way to deal with web elements whose attributes changes dynamically.
In this lecture students will learn about how to identify image web elements including svg elements.
This lecture explains how to write XPaths for dropdowns and menus items.
This lecture introduces students to what are custom tags and XPath expressions for them.
This lecture explains about how to create XPath expressions for web elements which are inside iframe.
This lecture explains about how to create XPath for web elements which are inside Shadow DOM.
Want to master XPath locators and become confident in identifying web elements for UI test automation?
In this XPath tutorial, you’ll learn how to build stable XPath locators for real web applications using Chrome DevTools for use in automation like Selenium automation. In this XPath tutorial ,you will learn one of the most powerful techniques for locating web elements in modern web applications. Whether you work with Selenium, Cypress or Playwright automation, understanding XPath locators can help you identify elements accurately and handle even complex web page structures.
In this practical, beginner-friendly XPath tutorial, you will learn XPath locators from the fundamentals to advanced concepts through clear explanations, HTML examples and real-world demonstrations.
What You Will Learn in this XPath tutorial
Understand XPath locators and its importance in UI test automation whether you are using Selenium, Playwright or Cypress.
All about web elements, DOM, required knowledge of DOM for automation tester
Build stable XPath locators for real web applications using Chrome DevTools for Selenium automation.
Learn the difference between Absolute XPath locators and Relative XPath locators.
Write XPath expressions using different attributes and text, write dynamic xpath, advanced xpath
Work with XPath functions such as contains(), starts-with() and normalize-space().
Handle dynamic IDs and other changing attributes
Master XPath axes, including parent, child, ancestor, descendant, preceding-sibling and following-sibling.
Identify elements within complex HTML and DOM structures.
Learn how to leverage AI for writing XPath whether you are using Selenium, playwright or Cypress, SelectorsHub
How to write XPath, Selectors smartly without wasting any time
Write XPath locators for dropdowns, menus, web tables and custom HTML tags.
Understand how to write XPath locators for SVG elements.
Learn about Shadow DOM and its structure.
Work with elements inside iframes.
Practice writing XPath locators using real-world examples.
Learn about common interview questions asked based on XPath locators for QA UI Automation interviews.