← Back to DOM domain

DOM.enable

Enables DOM agent for the given page.

Domain: DOM stable

Parameters

NameTypeDescription
includeWhitespace (optional)stringWhether to include whitespaces in the children array of returned Nodes.

Example Request

{
  "id": 1,
  "method": "DOM.enable"
}

Example Response

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

Usage in Node.js

const result = await send('DOM.enable');
console.log(result);