Search code examples
cssseleniumfirefox-addoncss-selectors

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


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.


Solution

  • 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