Reputation: 15
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="[email protected]" name="Moon">Moon</span>
Upvotes: 0
Views: 196
Reputation: 648
Using $:
const ele = await page.$('span[email="[email protected]"]');
Upvotes: 1