const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://wordscapes.yourdictionary.com/');
const allItemsInPage = await page.$$(".item");
for (const item of allItemsInPage) {
const url = await item.getProperty('href');
const spanHandle = await item.$('.card');
const textHandle = await spanHandle.getProperty('innerText');
const text = await textHandle.jsonValue();
console.log(`${url}`);
console.log(`${text}`);
}
allItemsInPage Contains Cards in each card has nested list. What I expected Output: Go and run the code then check the console