使用节点puppeteer模块,如何继续使用此代码来获取innerContent?
const els = Promise.all(await page.$$(selector)).then(results => {
results.map(async el => {
const tr = await el.$('tr')
//How do I convert this element handle to get its innerText content?
})
})
答案 0 :(得分:1)
赞
textValue = tr.getProperty('innerText').jsonValue()