Crazy that this approach seems to be the preferred way to do it. How hard would it be to implement the recording in the browser engine? There you could do it perfectly, right?
And then you'd need to maintain the code so it works with future Chrome versions.
Just as I got it working AI came along which made it pointless then I realised when I got to the bottom that you cannot do it perfectly because it’s not a deterministic renderer. So I called the project to an end.
What? What does AI have to do with anything here?
https://source.chromium.org/chromium/chromium/src/+/main:com...
You give the agent a URL it records itself going through UX flows, give that video to a coding agent and you have quite a feature.