In Selenium, if the elements are not found by the general locators like id, class, name, etc. then XPath is used to find an element on the web page. An XML path is utilized to navigate across the page's HTML structure. For this purpose, it uses XML path expressions. Today, we will learn about XPath and how to use it in Selenium. We shall go through the concepts, locators, types and axes of XPath