Answers for "puppeteer element attribute"

0

puppeteer get attribute

await page.evaluate('document.querySelector("span.styleNumber").getAttribute("data-Color")')

// see stackoverflow for a better explanation ^^
Posted by: Guest on September-12-2021
0

puppeteer html custom attribute

await page.waitForSelector('[name="password"]'); // custom attribute
await page.type('[name="password"]', "something here");
Posted by: Guest on August-29-2021

Browse Popular Code Answers by Language