Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
January 21, 2023 11:07 pm GMT

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 ?


Original Link: https://dev.to/martinadams/how-to-get-full-css-selector-path-1c8g

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To