Closed tnolet closed 6 years ago
finder seems like the best library I could find for this purpose.
Also see this (somewhat dated) comparison: https://github.com/fczbkk/css-selector-generator-benchmark
@transitive-bullshit I'm going to do some testing on this.
The library used for generating CSS selectors [0] from HTML nodes is a bit flaky. Even the https://checklyhq.com/docs/ generates css selectors that don't work in Puppeteer.
For a link on the side bar it generates
[0] https://github.com/fczbkk/css-selector-generator