Is there an addon which you can test css selectors in firefox?

user223871 picture user223871 · Feb 5, 2010 · Viewed 30.3k times · Source

I was wondering if there is such an addon in firefox where you can test out css paths to check if they are finding the correct element? I was looking for something similar to xpather for xpath locations.

Answer

K. Norbert picture K. Norbert · Feb 5, 2010

Edit 2019-12-04:

The firefinder addon no longer exists, but you can use the developer console (press F12), and the $$ function to get elements matching a selector, eg. to select all divs: $$('div')

Old answer:

FireFinder does exactly what you are looking for. You can evaluate either CSS, or XPath expressions, it will list the matching elements, and also draw a red border around them.

FireFinder