browser_events
View and filter runtime browser events (fetch, XHR, clicks, errors) captured during automated tests, or clear the event log to create a new checkpoint for debugging.
Instructions
运行时事件管理工具(v1.9.5 起合并 browser_events_clear)。通过 mode 参数区分子模式:view(默认,查看 browser_instrument 捕获的事件流,支持按类型/URL/方法/状态码过滤)/ clear(清空运行时事件并创建新的事件 checkpoint)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 事件管理模式:view(默认,查看事件流)/ clear(清空事件并创建新 checkpoint,等价于已废弃的 browser_events_clear) | view |
| type | No | 事件类型,如 fetch_start/fetch_end/xhr_end/click/input/console/window_error/unhandledrejection/route/storage_set | |
| limit | No | 最多返回事件条数,默认 100 | |
| since | No | ISO 时间戳,只返回该时间之后的事件 | |
| method | No | 只返回指定 HTTP 方法的 fetch/xhr 事件 | |
| statusMin | No | 只返回状态码大于等于该值的网络事件 | |
| urlContains | No | 只返回页面 URL 或请求 URL 包含该关键字的事件 |