Hello Team I need to add this code to a puppeteer test to listen in the page that I'm working the messages that the page which is opened automatically
window.addEventListener('message', event => {
console.log(event
});
I Try to use this code https://github.com/puppeteer/puppeteer/blob/main/examples/custom-event.js but this is not suitable for me. Any idea? Thanks