What is the right query selector to grab all the tags, and iterate, in order to capture table data? The below query selectors are failing to find the elements in the DOM. Thank you in advance
const allusers = await page.$$eval('tbody .MuiTableRow-root', (users) => {
return users.map(user => {
const email = user.querySelector('tr:nth-child(1)');
const edition = user.querySelector('tr:nth-child(2)');
return {
email: email.innerText.trim(),
edition: edition.innerText.trim()
};
});
});
console.log('${allusers.length} users found');
console.dir(allusers);
