...
Playwright is primarily designed for web automation and testing, but it can be used in creative ways to build various record and playback applications. Here's a brief overview of how to use Playwright, followed by some ideas for record and playback applications.
Desktop App for record and playback user interaction for web apps.
https://github.com/elastic/synthetics-recorder/tree/main
...
Above recorder is designed by elastic search team of their particular use case.
Note that the above recorder is in a Tech Preview phase at the moment, and not supported.
The idea is we can look into their source code and we can build some thing similar like mabl.
Chrome Extension.