Skip to content

Page.handleJavaScriptDialog CDP method not implemented #2082

@tmchow

Description

@tmchow

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions