XPath locators for Selenium
XPath or XML Path Language is a query language for selecting nodes from an XML document. It also may be used to compute values from the content of an XML document.
XPath is the most complicated method of identifying elements, but it can find the location of ANY element on a web page, even those without class, name, or id attributes. It produces reliable locators if used correctly.
In this course you will learn how to build reliable complex XPath locators, that can help you automate testing of any web application.
Preparation and code walk through
Review of different selenium locator strategies
Using different tools and methods to help locate elements on the page
What is XPath or XML Path Language
Difference between Absolute XPath and Relative XPath
Different types of nodes and XPath terminology
XPath syntax and creating basic XPath
Difference between Single and double forward slash in front and inside of XPath
Few examples of creating basic XPath locators
Using XPath position and index
Using Text to create XPath locators
Using part of values to create XPath locators
Using OR and AND operators in XPath
Using XPath Axes to find parent, child or sibling element
Using XPath in Selenium Tests