Click or drag to resize

DOMClient.GetNodeForLocationAsync Method

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

Namespace:  CefSharp.DevTools.DOM
Assembly:  CefSharp (in CefSharp.dll) Version: 88.2.90.0 (88.2.90.0)
Syntax
public Task<GetNodeForLocationResponse> GetNodeForLocationAsync(
	int x,
	int y,
	Nullable<bool> includeUserAgentShadowDOM = null,
	Nullable<bool> ignorePointerEventsNone = null
)

Parameters

x
Type: System.Int32
X coordinate.
y
Type: System.Int32
Y coordinate.
includeUserAgentShadowDOM (Optional)
Type: System.Nullable<Boolean>
False to skip to the nearest non-UA shadow root ancestor (default: false).
ignorePointerEventsNone (Optional)
Type: System.Nullable<Boolean>
Whether to ignore pointer-events: none on elements and hit test them.

Return Value

Type: Task<GetNodeForLocationResponse>
returns System.Threading.Tasks.Task<GetNodeForLocationResponse>
See Also