Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

112
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda