Skip to content

Add Browser.CreateCDPSessionAsync() for browser-level CDP commands#3140

Merged
kblok merged 3 commits intomasterfrom
issue-2638
Feb 16, 2026
Merged

Add Browser.CreateCDPSessionAsync() for browser-level CDP commands#3140
kblok merged 3 commits intomasterfrom
issue-2638

Conversation

@kblok
Copy link
Member

@kblok kblok commented Feb 16, 2026

Summary

  • Adds CreateCDPSessionAsync() to IBrowser interface and Browser base class
  • Delegates to browser.Target.CreateCDPSessionAsync(), following the same pattern as Page.CreateCDPSessionAsync()
  • Enables users to send CDP commands to browser-level domains (e.g., Storage, Browser) that aren't tied to a specific page session

Closes #2638

Test plan

  • New test BrowserTests.CreateCDPSessionTests.ShouldWork passes with Chrome/CDP
  • Verify BiDi throws PuppeteerException("Not supported") as expected

🤖 Generated with Claude Code

kblok and others added 3 commits February 16, 2026 16:22
…2638)

Expose CreateCDPSessionAsync on IBrowser to allow sending CDP commands
at the browser level (e.g., Storage, Browser domains) without requiring
a page-specific session.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Send direct messages

1 participant