#How to get the puppeteer page to run code in the context of the browser?

4 messages · Page 1 of 1 (latest)

lone spire
#

Is there something like await client.page.evaluate(() => { return 1 + 2; });

lone spire
#

?

lone spire
#

Any idea?

covert tide
#
const soma = await client.pupPage.evaluate(() => { return 1 + 2; });
console.log(soma);