Is there a way to get the XPath in Google Chrome?

You can use $x in the Chrome javascript console. No extensions needed.

ex: $x("//img")

Also the search box in the web inspector will accept xpath

Leave a Comment