New
#1
How to make puppeteer wait for the page to load completely?
I struggle to take clear screenshots. The issue happens with websites that don't initially include direct links to resources such as images in their HTML code. As a result, the page load event triggers early, typically after the initial DOM has been parsed, which is too soon for these particular sites. So, how can I make puppeteer wait for the page of this type to fully load?