emulate
Emulates device viewports, user agents, color schemes, geolocation, CPU throttling, and network conditions to test responsive behavior and performance under varied conditions.
Instructions
Emulates various features on the selected page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| viewport | No | Emulate device viewports '<width>x<height>x<devicePixelRatio>[,mobile][,touch][,landscape]'. 'touch' and 'mobile' to emulate mobile devices. 'landscape' to emulate landscape mode. | |
| userAgent | No | User agent to emulate. Set to empty string to clear the user agent override. | |
| colorScheme | No | Emulate the dark or the light mode. Set to "auto" to reset to the default. | |
| geolocation | No | Geolocation (`<latitude>x<longitude>`) to emulate. Latitude between -90 and 90. Longitude between -180 and 180. Omit to clear the geolocation override. | |
| cpuThrottlingRate | No | Represents the CPU slowdown factor. Omit or set the rate to 1 to disable throttling | |
| networkConditions | No | Throttle network. Omit to disable throttling. |