Anybody know of a framework which can record user sessions and output puppeteer commands? (basically mouse clicks -> code)
It would make writing end-2-end integration tests much easier...
It would make writing end-2-end integration tests much easier...
Not great. They're prone to timing problems and fragile selectors. They work well for rapidly recorded, rapidly changing sites (where you can throw them away) or very stable sites (where the DOM is basically fixed), but they rapidly become a hassle in the middle.
But they sure are easy. I'd suggest recording as a first pass, then going back and refactoring them to be a bit more stable; Change XPATH or structural CSS selectors to use classes and IDs, add waits and assert for page loads, etc.