XPath evaluating in Chrome

IF you need to find HTML elements in a web page via XPath, it’s desirable to do this with an already existing web page in your browser. in Chrome/Chromium this is especially easy. If you open the web developer tools and switch to the console, you can type something like that

$x(“//*[@id=’list’]”) ;

And the browser will return you the found HTML element (or nothing if it does not exist).


Tags: , , , , ,

One Response to “XPath evaluating in Chrome”

  1. Lebanon web design company Says:

    […] More: https://stefon.wordpress.com/2013/10/23/xpath-evaluating-in-chrome/ […]

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: