MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / nodeForLocation

Method nodeForLocation

front_end/core/sdk/DOMModel.ts:2040–2046  ·  view source on GitHub ↗
(x: number, y: number, includeUserAgentShadowDOM: boolean)

Source from the content-addressed store, hash-verified

2038 }
2039
2040 async nodeForLocation(x: number, y: number, includeUserAgentShadowDOM: boolean): Promise<DOMNode|null> {
2041 const response = await this.agent.invoke_getNodeForLocation({x, y, includeUserAgentShadowDOM});
2042 if (response.getError() || !response.nodeId) {
2043 return null;
2044 }
2045 return this.nodeForId(response.nodeId);
2046 }
2047
2048 async getContainerForNode(
2049 nodeId: Protocol.DOM.NodeId, containerName?: string, physicalAxes?: Protocol.DOM.PhysicalAxes,

Callers 1

handleMouseEventMethod · 0.80

Calls 3

nodeForIdMethod · 0.95
getErrorMethod · 0.80

Tested by

no test coverage detected