← Back to Emulation domain

Emulation.setTouchEmulationEnabled

Enables touch on platforms which do not support them.

Domain: Emulation stable

Parameters

NameTypeDescription
enabledbooleanWhether the touch event emulation should be enabled.
maxTouchPoints (optional)integerMaximum touch points supported. Defaults to one.

Example Request

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

Example Response

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

Usage in Node.js

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