4 ms·
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 inte
by gitgud 6y ago
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...
- hlenke 6y agoHey, here is a basic & open source recorder for Puppeteer: https://github.com/checkly/puppeteer-recorder https://github.com/checkly/puppeteer-recorder from the same team (disclaimer I'm co-founder of Checkly)
- dpacmittal 6y agoThere's a chrome extension for nightmarejs which does exactly this
- johnmurch 6y agoTake a peak at Hackium - https://medium.com/@jsoverson/introducing-hackium-723790c00d03 https://medium.com/@jsoverson/introducing-hackium-723790c00d...
- mathias 6y agohttps://github.com/puppeteer/recorder https://github.com/puppeteer/recorder
- calderarrow 6y agoTry out the selenium IDE.[0] It's a browser extension which allows you to record your movements/actions in the browser, and then export a scaffold of the code to replicate the interactions. It could serve as a decent start point [0] https://www.selenium.dev/selenium-ide/ https://www.selenium.dev/selenium-ide/
- Dylanlacey 6y agoI work at Sauce Labs (inc. TestObject and Screener.io) and the Record-and-Playback tests are the ones that tend to be the most... 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.