Javascript 如何在Puppeter中从elementHandle中选择innerHTML

Javascript 如何在Puppeter中从elementHandle中选择innerHTML,javascript,ecmascript-6,Javascript,Ecmascript 6,使用node puppeter模块,如何继续使用此代码来获取此处的内部内容 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?

使用node puppeter模块,如何继续使用此代码来获取此处的内部内容

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?
         })
     })
像这样

textValue = tr.getProperty('innerText').jsonValue()
可能重复的