Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Overlay domain exposes visual adornments and node selection interaction
| Methods | enable, disable, setInspectMode |
| Events | inspectNodeRequested, nodeHighlightRequested |
| Dependencies | DOM |
Methods
enable
Enables reporting of nodeHighlightRequested and inspectElementRequested events
disable
Disables reporting of Overlay domain events
setInspectMode
Sets the element selection mode for the client
| Parameters | ||
|---|---|---|
| mode | string |
The inspection mode. Valid values are 'searchForNode' and 'none'. |
| highlightConfig optional |
DOM.HighlightConfig |
The highlight configuration to use while inspecting |
Events
inspectNodeRequested
Notifies the client that the user has asked to inspect a particular node
| Parameters | ||
|---|---|---|
| backendNodeId | DOM.BackendNodeId |
The backend node ID of node requested |
nodeHighlightRequested
Indicates that the user has hovered over the node and may inspect the node
| Parameters | ||
|---|---|---|
| nodeId | DOM.NodeId |
The node ID of the node being considered |