0

I am getting an html element first as follow

let elem = document.queryselector("#mountain");

after this I get the preferred element, I want to know the xpath of this element using JS. Is there a way I can get it's xpath.

0 Answers0