← Back to Emulation domain

Emulation.getScreenInfos

Returns device's screen configuration. In headful mode, the physical screens configuration is returned, whereas in headless mode, a virtual headless screen configuration is provided instead.

Domain: Emulation experimental

Returns

NameTypeDescription
screenInfosarray

Example Request

{
  "id": 1,
  "method": "Emulation.getScreenInfos"
}

Example Response

{
  "id": 1,
  "result": {
    "screenInfos": []
  }
}

Usage in Node.js

const result = await send('Emulation.getScreenInfos');
console.log(result);
// {"screenInfos": []}