ChangedAPI

Screenshots wait for late content by default.

The default for wait_until is now auto, which waits for content that arrives after the page has loaded, so fewer screenshots come back half empty.

wait_until has a new value, auto, and it is now the default. It waits for the page’s load event, then until no request has been in flight for 500 ms, for at most 3 seconds more. At that limit it takes the screenshot of the page as it is, rather than failing.

Pages that fetch their content after loading, such as single-page apps and dashboards, now come back filled in without a delay_ms.

What changes for you: a request that doesn’t set wait_until can take up to 3 seconds longer on a page that keeps loading. To keep the old behaviour, send wait_until=load, which means what it always did. A page still filling in after 3 seconds needs wait_until=networkidle0 or a delay_ms.

Read the documentation

Try it on your own pages.

Everything in this changelog is live. 100 free screenshots a month, no credit card needed.