emulate
Override viewport, user agent, geolocation, color scheme, network conditions, and CPU throttling on a Chrome page to test site behavior across different environments.
Instructions
Emulates various features on the page. Settings last until the debugger detaches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | Targets a specific page by ID. Defaults to the selected page. | |
| viewport | No | <width>x<height>x<devicePixelRatio>[,mobile][,touch][,landscape] | |
| userAgent | No | Empty string clears the override. | |
| colorScheme | No | ||
| geolocation | No | latitude,longitude | |
| extraHttpHeaders | No | JSON object string. Empty string clears. | |
| cpuThrottlingRate | No | ||
| networkConditions | No |