To try this feature out: right-click on a DOM node in the Elements Panel and select
Copy JS Path. You now have code like this in your clipboard:
💡️ Tip: Don't forget to check the quality of generated selector! For example, on a page I tested, DevTools generated a selector like this:
'body > div > div > article:nth-child(1) > p > a:nth-child(3)' !
Try this feature in Canary