DEV Community

Martin Adams
Martin Adams

Posted on

How to get full CSS selector path?

I need to get full CSS selector path for element like this

html > body > div > div:eq(1) > div > div:eq(4) > div > div:eq(1) > div > div:eq(0) > p:eq(21)

but what I get currently from Chrome for example is something like this

#post_1 > div:nth-child(2) > div.topic-body.clearfix.highlighted > div.topic-meta-data > div.names.trigger-user-card > span > a
Any tool to get the full path ?

Top comments (0)