Troubleshooting Puppeteer Script Errors

Legacy Puppeteer code fails when selecting XPath elements (page.$x error). Example fix:

async function retrieveItems(tab) {
  const items = await tab.$$('//span[@class="entry"]');
  console.info(items);
}

Intern seeks assistance.