← Back to Emulation domain

Emulation.setEmulatedVisionDeficiency

Emulates the given vision deficiency.

Domain: Emulation stable

Parameters

NameTypeDescription
typestringVision deficiency to emulate. Order: best-effort emulations come first, followed by any physiologically accurate emulations for medically recognized color vision deficiencies.

Example Request

{
  "id": 1,
  "method": "Emulation.setEmulatedVisionDeficiency",
  "params": {
    "type": "type-value"
  }
}

Example Response

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

Usage in Node.js

const result = await send('Emulation.setEmulatedVisionDeficiency', {"type": "type-value"});
console.log(result);