Y
Hacker News
new
|
ask
|
show
|
jobs
by
supermdguy
2899 days ago
Cypress (the testing framework) has a way to get a short, unique selector for any element on a page. It's even in its own npm package:
https://www.npmjs.com/package/@cypress/unique-selector