assert_network_request_made
Verify that a specific network request (URL pattern, HTTP method) was made. Use to confirm analytics, API calls, or resource loading in automated tests.
Instructions
Assert that a network request matching a pattern was made. Useful for verifying analytics, API calls, or resource loading.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urlPattern | No | URL substring to match | |
| method | No | HTTP method to match (GET, POST, etc.) | |
| minCount | No | Minimum number of matching requests expected | |
| tabId | No | Target tab ID (defaults to currently active tab) | |
| apiKey | No | API key for authentication if enabled |