How can I console.log something inside the page.evaluate, passing it to node and using it during the evaluation of the page?
I actually want to log
The easiest way to get it to work exactly like you'd expect
const page = await browser.newPage(); page.on('console', (log) => console[log._type](log._text));