Skip to content

Commit 669d82b

Browse files
authored
Update timeouts.mdx
add sofia edits
1 parent b3dcd4c commit 669d82b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/browser-rendering/reference/timeouts.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ Each timer controls a specific part of the rendering lifecycle — from page loa
1414
| Timer | Scope |Default |Max |
1515
| -------------------------------------- | --------------- | --------------- | --------------- |
1616
| `goToOptions.timeout` | Time to wait for the page to load before timeout. | 30 s | 60 s |
17-
| `goToOptions.waitUntil` | Time until page load considered complete: <br />`load` = full page load. <br />`Event.domcontentloaded` = the `DOMContentLoaded` event has fired. <br />`Event.networkidle0` = there are no active network connections for at least 500 ms. <br />`Event.networkidle2` = there are no more than two active network connections for at least 500 ms. |||
18-
| `goToOptions.waitUntil` | Time until page load considered complete:<br><ul><li>`load` – Full page load</li><li>`domcontentloaded``DOMContentLoaded` event fired</li><li>`networkidle0` – No active network connections for ≥ 500 ms</li><li>`networkidle2` – ≤ 2 active network connections for ≥ 500 ms</li></ul> |||
17+
| `goToOptions.waitUntil` | Time until page load considered complete: <br />`load` = full page load, including resources, like images and stylesheets. <br />`Event.domcontentloaded` = waits until the DOM content has been fully loaded, fires before the page `load` event. <br />`Event.networkidle0` = there are no active network connections for at least 500 ms. <br />`Event.networkidle2` = there are no more than two active network connections for at least 500 ms. |||
1918
| `waitForSelector` | Time to wait for a specific element (any CSS selector) to appear on the page. | null | 60 s |
2019
| `waitForTimeout` | Additional amount of time to wait after the page has loaded to proceed with actions. | null | 60 s |
2120
| `actionTimeout` | Time to wait for the action itself (for example: a screenshot, PDF, or scrape) to complete after the page has loaded. | null | 5 min |
@@ -27,3 +26,4 @@ You can set multiple timers — as long as one is complete, the request will fir
2726
If you are not getting the expected output:
2827
- Try increasing `goToOptions.timeout` (up to 60 s).
2928
- If waiting for a specific element, use `waitForSelector`. Otherwise, use `goToOptions.waitUntil` set to `networkidle2` to ensure the page has finished loading dynamic content.
29+
- If you are getting a `422`, it may be the action itself (ex: taking a screenshot, extracting the html content) that takes a long time. Try increasing the `actionTimeout` instead.

0 commit comments

Comments
 (0)