Using XPath in Safari 6 Web Inspector

Safari Web Inspector allows you to execute XPath queries from the search box:

web inspector screenshot

But the box is too small! You can use it, but not conveniently.

Is it possible to execute an XPath request from the command line shown at the bottom of the screenshot?

+5
source share
1 answer

I think in the Chrome or Firefox or Safari console you can evaluate XPath expressions with a function $x, for example. $x('//span')selects all items span.

+13
source

All Articles