I find the official Chrome DevTools MCP excellent for this. Lighter than Playwright, the loop is shorter, and easy to jam into Electron too.
https://github.com/ChromeDevTools/chrome-devtools-mcp/pull/1...
I've only used it a bit, but it's working well so far.