
Explore XPath locators for identifying elements by name, text, or descriptors, and learn how to handle dynamic versus static attributes when selecting web elements.
Learn the difference between absolute XPath, starting from the document root, and relative XPath, which can locate elements without a fixed full path, reducing maintenance when the structure changes.
Learn to craft XPath expressions using reliable attributes like placeholder and class, avoid dynamic ids, and handle shadow elements across browsers and frameworks with practical examples.
Discover XPath best practices for writing reliable selectors. Learn to inspect the DOM, prefer robust attributes like class, and avoid fixed values that may change with user interactions.
Learn how to craft conditional XPath expressions using attribute values to precisely select elements, exploring attribute filters and multiple conditions.
Explore XPath collections by indexing with square brackets to pick the first or second items, and understand how indexing may start at zero or at one.
Learn XPath functions by exploring last and position-based selections, including using last() to target the final elements, and using index, range, and slicing techniques with practical examples.
Master XPath basics for extracting data with text() and starts-with to match beginnings. Learn to normalize spaces and handle quotes for robust text-based queries.
Explore how to identify the correct XPath nodes by examining child, parent, and ancestor relationships using slash patterns and precise text or class matching.
Explore XPath axes to locate elements by their label, understand siblings relationships, and use following and preceding axes with indexing to select the first or next matches.
Master wildcard in XPath to match any value within a node, enabling flexible queries across variations like first names and last names. See when wildcards yield single or multiple matches.
Master svg xpath by using local-name() to select svg elements, distinguish global versus local names, and identify the specific elements driving actions within scalable vector graphics.
XPath is the widely used locator strategy in the world of test automation. This course can make you understand the XPath concept very easily.
As an Instructor I know that only the tutorial is not sufficient, so check the video resources to grab a testing practice site.
I build a practice site where you can practice most of the demos used in the course.