Per the CDP automation compatibility audit in #2043 by @noricha-vr, JavaScript dialog events (alert, confirm, prompt) are not forwarded via CDP, and Page.handleJavaScriptDialog is not implemented. This means Puppeteer's page.on('dialog') never fires and dialogs can't be accepted or dismissed programmatically.
The Dialog HTML element already exists in the WebAPI layer. Wiring a CDP handler for Page.handleJavaScriptDialog and emitting Page.javascriptDialogOpening events would close this gap.
Ref: #2043 (Page.handleJavaScriptDialog row)
Per the CDP automation compatibility audit in #2043 by @noricha-vr, JavaScript dialog events (alert, confirm, prompt) are not forwarded via CDP, and
Page.handleJavaScriptDialogis not implemented. This means Puppeteer'spage.on('dialog')never fires and dialogs can't be accepted or dismissed programmatically.The Dialog HTML element already exists in the WebAPI layer. Wiring a CDP handler for
Page.handleJavaScriptDialogand emittingPage.javascriptDialogOpeningevents would close this gap.Ref: #2043 (Page.handleJavaScriptDialog row)