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>
CodePudding user response:
Using $:
const ele = await page.$('span[email="[email protected]"]');