Skip to content

Expose Page.HasDevToolsAsync (upstream PR #14758)#3377

Merged
kblok merged 1 commit intomasterfrom
implement-upstream-change-14758
Mar 10, 2026
Merged

Expose Page.HasDevToolsAsync (upstream PR #14758)#3377
kblok merged 1 commit intomasterfrom
implement-upstream-change-14758

Conversation

@kblok
Copy link
Copy Markdown
Member

@kblok kblok commented Mar 10, 2026

Implements changes from puppeteer/puppeteer#14758 - adds HasDevToolsAsync to IPage/Page, uses Target.getDevToolsTarget CDP command, with 4 new tests.

Add HasDevToolsAsync method to IPage/Page that checks if DevTools is
attached to the current page using Target.getDevToolsTarget CDP command.
Currently only supported in Chrome CDP; throws NotSupportedException
in WebDriver BiDi. Also adds tests for the new method and for
openDevTools idempotency.

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.

1 participant