Page.setDeviceOrientationOverrideOverrides the Device Orientation.
| Name | Type | Description |
|---|---|---|
alpha | number | Mock alpha |
beta | number | Mock beta |
gamma | number | Mock gamma |
{
"id": 1,
"method": "Page.setDeviceOrientationOverride",
"params": {
"alpha": 1.0,
"beta": 1.0,
"gamma": 1.0
}
}
{
"id": 1,
"result": {}
}
const result = await send('Page.setDeviceOrientationOverride', {"alpha": 1.0, "beta": 1.0, "gamma": 1.0});
console.log(result);