Click or drag to resize

CSSClient.ForcePseudoStateAsync Method

Version 94.4.20
Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.

Namespace:  CefSharp.DevTools.CSS
Assembly:  CefSharp (in CefSharp.dll) Version: 94.4.20.0 (94.4.20.0)
Syntax
public Task<DevToolsMethodResponse> ForcePseudoStateAsync(
	int nodeId,
	string[] forcedPseudoClasses
)

Parameters

nodeId
Type: System.Int32
The element id for which to force the pseudo state.
forcedPseudoClasses
Type:System.String[]
Element pseudo classes to force when computing the element's style.

Return Value

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