wait_for_load_state
Wait for a page to reach a specific load state: load, domcontentloaded, or networkidle. Checks the current readyState first and only waits if the target state hasn't been reached.
Instructions
Wait for page to reach a specific load state. Checks current readyState first, only waits for event if page has not reached the target state yet. States: load (fully loaded), domcontentloaded (HTML ready), networkidle (no network activity for 500ms).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | State to wait for | load |
| tabId | No | Tab ID (optional) | |
| timeout | No | Timeout in milliseconds |