Blog

I migrated to Google Cloud

Google Cloud gives $300 in credits for 3 months for experimenting. And I decided to give it a try, but not because of the free credits.

Posted September 14, 2022 (updated September 14, 2022) by Dmytro Krasun ‐ 4 min read

How to hide chat widgets when taking a screenshot with Puppeteer

When you want to take chat widgets, there are annoying chat widgets that you would love to hide. It is easy to do.

Posted July 28, 2022 by Dmytro Krasun ‐ 1 min read

How to hide cookie banners when taking a screenshot with Puppeteer

When taking a screenshot, you want to ensure that you take a clean screenshot without cookie banners or cookie consent forms. And in this article, I will share with you how you can do it when using Puppeteer.

Posted July 28, 2022 by Dmytro Krasun ‐ 11 min read

Puppeteer: "Execution context was destroyed, most likely because of a navigation"

In this article, I share how to fix the "execution context was destroyed, most likely because of a navigation" error that might happen while using Puppeteer.

Posted July 25, 2022 by Dmytro Krasun ‐ 2 min read

Take a full page screenshot with Puppeteer

You can take a full page screenshot with Pupeeter by specifying the fullPage parameter as true when taking a screenshot.

But there is a caveat. If a site has lazy-loaded images, they won't be rendered. Let's examine how to fix the issue and trigger lazy image loading with Puppeteer.

Posted July 20, 2022 by Dmytro Krasun ‐ 3 min read

How to create a site thumbnail with Puppeteer

We can consider the screenshot of URL or HTML as a thumbnail, but I write about the thumbnail of a screenshot. How do you take a screenshot within the defined viewport but with different image width and height? Resize!

Posted July 18, 2022 by Dmytro Krasun ‐ 3 min read

Taking screenshots with Puppeteer in GIF, JP2, TIFF, AVIF, HEIF, or SVG format

Puppeteer, by default, supports only four formats for taking screenshots or rendering HTML: PNG, JPEG, WebP, and PDF.

If you want to take a screenshot of the site or render HTML in a different format, like GIF, JP2, TIFF, AVIF, HEIF, or SVG, there are many workarounds on how to do it.

Posted July 17, 2022 by Dmytro Krasun ‐ 6 min read