Answers for "puppeteer evaluate pass variable"

0

puppeteer evaluate pass variable

const links = await page.evaluate((evalVar) => {

  console.log(evalVar); // 2. should be defined now
  …

}, evalVar); // 1. pass variable as an argument
Posted by: Guest on December-24-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language