← Back to Emulation domain

Emulation.setFocusEmulationEnabled

Enables or disables simulating a focused and active page.

Domain: Emulation experimental

Parameters

NameTypeDescription
enabledbooleanWhether to enable to disable focus emulation.

Example Request

{
  "id": 1,
  "method": "Emulation.setFocusEmulationEnabled",
  "params": {
    "enabled": true
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Emulation.setFocusEmulationEnabled', {"enabled": true});
console.log(result);