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

109
Views
Puppeteer 100% height viewport option?

I'm using Puppeteer to take automated screenshots of webpages for regression tests. Puppeteer allows you to set the viewport size by passing a height and width to it.

Instead of passing a static height (for example, '1080' pixels), is it possible for Puppeteer to automatically set the height to be the full height of the content that is rendered?

For example, let's say you have a webpage that is 3000px height when the viewport is 1000px wide. In a normal non-headless browser on your desktop it would require vertical scrolling to reach the bottom of the page. Can puppeteer automatically determine this maximum 100% height of the page when the content is rendered? That way I can take a screenshot of the ENTIRE page no matter how tall it is?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

With fullPage option I am taking screenshots of webpages to the 100% height of the page independent from viewport height.

await page.screenshot({path: "./blabla/blablalbal.png", fullPage: true})

https://devdocs.io/puppeteer/ says:

fullPage <boolean> When true, takes a screenshot of the full scrollable page. Defaults to false.

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!