how to search dom elements using xpath or css selectors in chrome developer tools?
-
The doc http://code.google.com/chrome/devtools/docs/elements.html says it supports xpath or css selectors but when I tried, did not seem to work for me. Any one knows how to use it? Thanks!
-
Answer:
Just typing xpath expression in the search box should work. It works for me in tip-of-tree build. Here is a screenshot: http://i.stack.imgur.com/MU7Gj.png The feature seems to be broken in Chrome 11 though, I've filed a bug on this: http://crbug.com/79716
Bobo at Stack Overflow Visit the source
Other answers
You can use $x in the Chrome javascript console. No extensions needed. ex: $x("//img")
Matt Polito
Related Q & A:
- How To Search People Using Phone Number?Best solution by Yahoo! Answers
- How to Search using jQuery ASP.Net?Best solution by Stack Overflow
- How to save ONLY the CSS changes of Styles panel of Chrome Developer Tools?Best solution by Stack Overflow
- What are pros and cons of using expansionary and contractionary fiscal and monetary policy tools?Best solution by Yahoo! Answers
- How to search for a particular string in a text file using java?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.