It looks like playwright may have automatic waiting for events/navigation which would drastically clean up this code. The largest pain point currently is waiting for the application to load and ensuring that navigation is handled seamlessly. It looks like PlayWright may be a better solution than puppeteer, but maybe holding off a bit before this drastic a change would be wise.
src: https://theheadless.dev/posts/basics-navigation/
It looks like playwright may have automatic waiting for events/navigation which would drastically clean up this code. The largest pain point currently is waiting for the application to load and ensuring that navigation is handled seamlessly. It looks like PlayWright may be a better solution than puppeteer, but maybe holding off a bit before this drastic a change would be wise.
src: https://theheadless.dev/posts/basics-navigation/