I have been exploring the capabilities of puppeteer and am trying to extract the values from the column names of a table.
<tbody>
<tr class="GridHeader" align="center" style="background-color:Black;">
<td class="HeaderStyleOfdatalist">XYZ</td>
<td>0500</td>
<td>0550</td>
<td>0600</td>
<td>0650</td>
</tr>
</tbody>
My goal is to create an array containing these td values. I attempted using page.$(selector) but couldn't interpret the output. I also experimented with:
let idAttribute = await page.$eval('.GridHeader', e => e.childNodes);
console.log(idAttribute)
Unfortunately, I haven't been successful in retrieving the array of td values.
Could you please assist me in iterating through these values?