Wait & Rendering Synchronizations

Options to wait for dynamic elements (loaded via single page JS frameworks like Vue/React) or delay Chromium captures until asynchronous scripts complete.

wait_for_selector text
Default: ""

Will wait until the CSS selector is present in html. Use # for id and . for className.

wait_for_function text
Default: ""

String of the function name that should be executed and waited for until it returns a result.

wait_for_timeout number
Default: ""

In milliseconds. Will wait for this duration before creating the pdf.

scroll_whole_page boolean
Default: false

Scroll the whole page and load all images before rendering the pdf.