How do you find XPath?
If you’re using Chrome, use these steps to find XPath:
- Right-click and select ‘Inspect’ on the item where you want to locate the XPath.
- Right-click on the HTML DOM’s highlighted area.
- Select ‘Copy XPath’ from the Copy menu.
- Following the preceding step, you will obtain the element’s absolute XPath from the DOM.