fail_requests
Intercept and fail network requests matching a URL pattern, using CDP error reasons like 'TimedOut' or 'ConnectionRefused'.
Instructions
Fail every request matching url_pattern with error_reason.
``error_reason`` must match a CDP ``Network.ErrorReason`` member
(``Failed``, ``Aborted``, ``TimedOut``, ``AccessDenied``,
``ConnectionClosed``, ``ConnectionReset``, ``ConnectionRefused``,
``ConnectionAborted``, ``ConnectionFailed``, ``NameNotResolved``,
``InternetDisconnected``, ``AddressUnreachable``, ``BlockedByClient``,
``BlockedByResponse``).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url_pattern | Yes | ||
| error_reason | No | Failed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |