RSS

Monthly Archives: October 2014

Using xpath in Google Chrome

Yes, it’s easy. Open the Inspector and click Elements to activate the tab. On a Mac, do a search by pressing Command-F and enter your XPath query.

For example:

//div[contains(@class,'type-post')]//iframe

Voila! Your matched elements are highlighted.

Screen Shot 2014-10-02 at 12.58.28 PM

 
1 Comment

Posted by on October 2, 2014 in Uncategorized

 
 
%d bloggers like this: