setViewPort()
Overrides the values of device screen dimensions
Examples
await setViewPort({width:600, height:800})
Parameters
| Name | Type | Description |
|---|---|---|
options |
Object | See chrome devtools setDeviceMetricsOverride for a list of options |
Returns
| Type | Description |
|---|---|
Promise<void> |