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