checkly / headless-recorder

Chrome extension that records your browser interactions and generates a Playwright or Puppeteer script.
https://checklyhq.com/headless-recorder
MIT License
15.03k stars 722 forks source link

Suggestion: pptr-testing-library mode #63

Closed MynockSpit closed 5 years ago

MynockSpit commented 5 years ago

This is probably very much out of scope, but here's a thought:

Add a pptr-testing-library mode that tries first to produce pptr-testing-library queries, and falls back on the current queries if they don't work. Honestly don't know how many other people would want it, but it'd make me much more confident in my selectors.

tnolet commented 5 years ago

Hi @MynockSpit I think this is such a custom thing, that we probably want a different solution to this. CSS selector are mighty tricky to determine dynamically. A custom library is just a tricky solution to a tricky problem. Thanks for contributing though.