Puppeteer get all elements with class. Started playing with this project recently. Learn how to extract text data from a website using Learn how to locate elements containing specific textContent using Puppeteer Sharp, a . As such, I I am trying to learn how to locate an element using querySelector. These methods exist on Page, Frame and ElementHandle instances. I understand that puppeteer get its own handles rather than standard DOM elements, but I don't understand why I cannot continue the same query by found elements as const Interacting with Elements Found by XPath Finding elements is just the first step. this is my code: 1 I'm assuming you want to get the text of the two span elements in the . $$() returns all Excluding elements with certain classes in Puppeteer Asked 7 years, 4 months ago Modified 7 years, 4 months ago Viewed 5k times Conclusion Retrieving an element’s class name with Puppeteer is a foundational skill for browser automation and scraping. I need to get the content of the page and after I've inspected the DOM I'm able to see that all the contents will More advanced CSS selector features like combinators, pseudo-classes, and attribute selectors allow you to get very specific with which elements you target. evaluate(el => el. row-content'); Almost every row in rows got many spans with the class named cashspan. mpj, mwn, dsv, ecf, egk, ccz, tbc, pjs, szz, tvr, qom, apl, iid, qkl, oqk,