emulate_device
Emulate a mobile device in browser tests by adjusting viewport, pixel ratio, and touch settings using Chrome DevTools Protocol.
Instructions
Emulate a mobile device using Chrome DevTools Protocol. Adjusts viewport, pixel ratio, and touch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Preset device name | |
| width | No | Custom width (overrides device preset) | |
| height | No | Custom height | |
| mobile | No | Mobile flag | |
| pixel_ratio | No |