DEV Community

Ajay Galagali
Ajay Galagali

Posted on

How to get XPath of HTML element?

Follow the below steps to get XPath of HTML element.

Step 1: Open browser, I am using Chrome

Step 2: Go to https://www.google.com/

Step 3: Right-click on the element of which XPATH is needed.

Right-click on the element

Step 4: Click on Inspect

Click on Inspect

Step 5: Right click on HTML tag (input tag) and follow till Copy XPath and click on it. Voila! ๐ŸŽ‰ XPath is copied to your clipboard.

Right click on HTML tag (input tag) and follow till Copy XPath

Read more about XPath at https://developer.mozilla.org/en-US/docs/Web/XPath

Thank you!

โš  Check out original blog here

Top comments (0)

Image of Docusign

๐Ÿ› ๏ธ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more