Generalize `Page.on` beyond `"console"` events (#2875)
# why Generalize the system and types to handle more than `"console"` events for `Page.on` listeners. # what changed - `PageCDPEvent` schema now has `method: z.enum` parameter. - We propagate through the page event (today, still just `"console"`) down to the CDP subscription manager. # test plan This refactor introduces no functional changes. We update existing tests to in preparation for more events. All tests should continue passing.
Z
Ziray Hao committed
d4f16a98a5061279bed997b98fd3f0c17334eedb
Parent: 50146e4
Committed by GitHub <noreply@github.com>
on 9/3/2026, 8:08:48 PM