wait_for_network
Wait for a specific network request to complete by matching URL pattern, avoiding blind timeouts in web testing.
Instructions
Wait for a specific network request to complete. Use URL pattern matching (substring) to wait for API calls instead of blind timeouts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | HTTP method filter (optional, e.g. 'POST', 'GET') | |
| timeout | No | Max wait time in ms (default: 30000) | |
| session_id | Yes | Session ID | |
| url_pattern | Yes | Substring to match in request URL (e.g. '/api/tasks', 'graphql') |