getNodeForLocation

Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is either returned or not.


suspend fun getNodeForLocation(x: Int, y: Int, includeUserAgentShadowDOM: Boolean? = null, ignorePointerEventsNone: Boolean? = null): DOM.GetNodeForLocationReturn

Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is either returned or not.

Parameters

x

X coordinate.

y

Y coordinate.

includeUserAgentShadowDOM

False to skip to the nearest non-UA shadow root ancestor (default: false).

ignorePointerEventsNone

Whether to ignore pointer-events: none on elements and hit test them.