Home > Enterprise >  how to select span with specific email attribute value with Puppeteer
how to select span with specific email attribute value with Puppeteer

Time:10-23

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]"]');
  • Related