Selenium XPath element locator to find element by XPath
In selenium, XPath is one of the most popular element locator. Selenium find element by XPath in selenium is little bit hard. XPath in selenium is used to traverse through the HTML structure of the web page. Before looking at selenium XPath, We must know what is the XPath. Then and then only we can understand how to find XPath of any element in selenium.
What is XPath?
XPath is language of expression which is designed to support transformation or query of XML document. XPath provides path expression to select list of nodes or single node from XML document. It is used to describe different parts of XML document like attribute, text, element, processing-instruction, namespace, document nodes and comment.