Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

110
Views
How to multiple html elements with puppeteer?

I want to get multiple html elements with puppeteer from dynamic website.

But when I only get first element.

How to get all elements?

 const puppeteer = require("puppeteer-core");
        browser = await puppeteer.launch({
          executablePath:
            "./node_modules/chromium/lib/chromium/chrome-mac/Chromium.app/Contents/MacOS/Chromium",
        });
 const element = await page.waitForSelector(
        ".MuiTableRow-root.MuiTableRow-hover.css-1tq71ky"
      );

const value = await element.evaluate((el) => el.textContent);

console.log(value);
await browser.close();
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I had a similar issue and i solved it with a loop, something like this:

for(const single of element){

   const value = await single.evaluate((el) => el.textContent);
   console.log(value);

}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!