

Discover more from Can I DevTools?
Get weekly tips & tricks for your favorite browser devtools, created by @pankajparashar.
Continue reading
Chrome
Inspect the element > Right click on the node in the DOM tree > Copy > Copy full XPath.

Firefox
Inspect element > Right click on the node in the DOM tree > Copy > XPath.

Edge
Inspect element > Right click on the node in the DOM tree > Copy > Copy full XPath.

Safari
Inspect element > Right click on the node in the DOM tree > Copy > XPath.

Opera
Inspect the element > Right click on the node in the DOM tree > Copy > Copy full XPath.
