There's a chrome extension that records all your steps and then generates a puppeteer/playwright script for you. Then you can just edit bits of that script and run it. This is my go-to method presently.
I feel like you could incorporate some of those features into this and eliminate some of the manual entry of css selectors.