puppeteer get value of div

169

puppeteer get value of div -

await page.waitForSelector('your selector')
let element = await page.$('your selector')
let value = await page.evaluate(el => el.textContent, element)

Comments

Submit
0 Comments