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

171
Views
Using Puppeteer, do a screen capture. the screen capture is done before each element is drawn completely

I do a screen capture using puppeteer, but it comes out that the pixels are different when comparing the pictures because the screen capture is done before each element is drawn.

it has multiple div class "section".

elements = await page.$$('.selector');

for (let count = 0 ; count < elements.length ; count++) {
 
    await elements[count].screenshot({path:path.join(__dirname, name +'${count}.png')});

    await page.waitForTimeout(100);
}

in this case, some elements screenshots are broken. it capture image before drawing element completely.

each elements has sub div class. for example, one specific element has image , description with opacity , #tag , clickable button.

How do i capture each element that is drawn completely??

about 4 years ago · Juan Pablo Isaza
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!