Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

puppeteer get attribute

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

// see stackoverflow for a better explanation ^^
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #puppeteer #attribute
ADD COMMENT
Topic
Name
6+8 =