9

Safari's Web Inspector lets you do XPath queries from the search box:

web inspector screenshot

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

Is it possible to do the XPath query from the console prompt shown on the bottom of the screenshot?

4

1 に答える 1

22

Chrome、Firefox、Safariのコンソールでは、すべての要素を選択する$xなどの関数を使用してXPath式を評価できると思います。$x('//span')span

于 2012-09-19T14:09:49.090 に答える