How can I use xpath instead of id to find the element in DOM. I know that for id I can use: $("#id")[0]
.
I use $("#id")[0]
inside Developer mode in browser in order to get the element by id to see what methods (like .getText()
, innerHTML
or others) am I able to use for the element. I want to know how to do this by XPATH
Thanks in advance