← Back to Emulation domain

Emulation.canEmulate

Tells whether emulation is supported.

Domain: Emulation deprecated

Returns

NameTypeDescription
resultbooleanTrue if emulation is supported.

Example Request

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

Example Response

{
  "id": 1,
  "result": {
    "result": {
      "type": "string",
      "value": "Example Domain"
    }
  }
}

Usage in Node.js

const result = await send('Emulation.canEmulate');
console.log(result);
// {"result": {"type": "string", "value": "Example Domain"}}