Page Load Settings
Control when the screenshot is captured during page load. Some websites need more time to fully render content before capturing.Wait condition
ThewaitUntil parameter determines when to consider the page “loaded” before capturing:
Using wait conditions
bash
Choosing the right condition
- networkidle2 (default) - Best for most websites. Waits for page to be mostly loaded.
- networkidle0 - Use for pages with minimal JavaScript or known tracking scripts.
- domcontentloaded - Use for fast-capturing when content renders quickly.
- load - Use only for simple, static pages without dynamic content.
Timeout
Thetimeout parameter sets the maximum wait time before aborting the screenshot.
Setting timeout
bash
When to adjust timeout
- Increase timeout for slow-loading pages, heavy content, or complex web applications
- Decrease timeout for fast, lightweight pages to fail quickly on errors
Combining settings
For complex pages, combine wait condition with custom timeout:bash
Troubleshooting
Parameters
See also
- Full Page Screenshots - Capture entire page length
- Viewport Presets - Device sizes and dimensions