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

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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think in the console of Chrome or Firefox or Safari you can evaluate XPath expressions with the function
$xe.g.$x('//span')selects allspanelements.