- Decorator
- Wrapper Function Pattern
- Clicking buttons or links that load data
- Submitting forms
- Triggering filters or searches
- Any interaction that initiates API calls
Examples
Arguments
The async function to decorate. Must accept a Page object as a parameter. If not provided, returns a parameterized decorator.
Maximum seconds to wait for network to settle. If timeout is reached, logs a warning and continues (doesn’t raise an error). Defaults to 30.
Maximum number of ongoing requests to consider network as “settled”. Useful for pages with long-polling or streaming. Defaults to 0 (waits for all requests to complete).