using Puppeteer trying to search in my email page for recent emails that contain specific (“email” in my case) attribute or by the text value at least
<span email="noreply@example.com" name="Moon">Moon</span>
Advertisement
Answer
Using $:
const ele = await page.$('span[email="noreply@example.com"]');