How to generate XPath using a web browser?

March 08, 2016

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

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


Do not spam.

Like us on Facebook

Blog Archive