Emulation.setPrimaryScreenSet primary screen. Only supported in headless mode. Note that this changes the coordinate system origin to the top-left of the new primary screen, updating the bounds and work areas of all existing screens accordingly.
| Name | Type | Description |
|---|---|---|
screenId | ScreenId |
{
"id": 1,
"method": "Emulation.setPrimaryScreen",
"params": {
"screenId": "screenId-value"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Emulation.setPrimaryScreen', {"screenId": "screenId-value"});
console.log(result);