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
const page = await browser.newPage(); page.on('console', ConsoleMessage => console.log(ConsoleMessage.text));