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
JavaScript
x
2
1
<span email="noreply@example.com" name="Moon">Moon</span>
2
Advertisement
Answer
Using $:
JavaScript
1
2
1
const ele = await page.$('span[email="noreply@example.com"]');
2