i have a puppeteer code here
//within my puppeteer file
const relatedData = await page.evaluate(() => {
const related = Array.from(document.querySelectorAll('.CbirSites-Item'))
return related
});
console.log(relatedData);
result = []
the result returns empty and i assumed it could not find the items but when i query select all within the actual browser itself it appears
//within the browser inspect console
document.querySelectorAll('.CbirSites-Item')
NodeList(20)[.......]
i expected the code to show all the items in the array but the result returned empty