I am trying to generate a captcha token with puppeteer through the window.grecaptcha() function. Yet, the console logs undefined instead of executing the function.
await page.evaluate(async () => {
console.log(await window.grecaptcha.execute(...))
})