How to generate XPath using a web browser?

Here you will learn to generate XPath without using any third party add-ons or software tools, most of the online generators are slow, or incorrect or will result in failure to generate the correct XPath. I have used Chrome developer tools to find an XPath.

XPath is used to navigate through elements and attributes in an XML document. XPath is a major element in W3C's XSLT standard.



Syntax of the XPath or constructs are available at http://www.w3schools.com/xsl/XPath_syntax.asp

To get XPath, for example,

1) Navigate to the site where you want to trace XPath




2) Find the expression (text) where you are interested with and follow as shown below


Comments