Click or drag to resize

PageClientHandleJavaScriptDialogAsync Method

Version 130.1.90
Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).

Namespace: CefSharp.DevTools.Page
Assembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax
public Task<DevToolsMethodResponse> HandleJavaScriptDialogAsync(
	bool accept,
	string promptText = null
)

Parameters

accept  Boolean
Whether to accept or dismiss the dialog.
promptText  String  (Optional)
The text to enter into the dialog prompt before accepting. Used only if this is a promptdialog.

Return Value

TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also