use XPath in browsers devtools

You can execute the XPath selectors in the browser dev tools using the

$x()

For example, following selector will give you all the anchor tags on the webpage.

$x('//a');

Further Reading :


You may also like...