RSS

Using xpath in Google Chrome

02 Oct

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

Advertisements
 
1 Comment

Posted by on October 2, 2014 in Uncategorized

 

One response to “Using xpath in Google Chrome

  1. cadomagenge

    June 24, 2015 at 7:14 am

    An interesting post! Thanks for sharing.

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: