Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add page.createCDPSession method #10515

Merged
merged 2 commits into from
Jul 21, 2023
Merged

feat: add page.createCDPSession method #10515

merged 2 commits into from
Jul 21, 2023

Conversation

OrKoN
Copy link
Collaborator

@OrKoN OrKoN commented Jul 6, 2023

There is no particular reason why a CDP session should be created only through the targets. Since we are not sure if the target API makes sense for a WebDriver BiDi client, I think it makes sense to expose a shortcut via the page (in the future, frame and worker instances too).

@OrKoN OrKoN force-pushed the orkon/cdp-session-bidi branch 2 times, most recently from 72fc170 to ee95f3f Compare July 7, 2023 07:20
@OrKoN OrKoN closed this Jul 20, 2023
@OrKoN OrKoN deleted the orkon/cdp-session-bidi branch July 20, 2023 08:35
@OrKoN OrKoN restored the orkon/cdp-session-bidi branch July 21, 2023 07:13
@OrKoN OrKoN reopened this Jul 21, 2023
@OrKoN OrKoN force-pushed the orkon/cdp-session-bidi branch 2 times, most recently from ee1f3a0 to 6137894 Compare July 21, 2023 08:09
packages/puppeteer-core/src/common/bidi/BrowsingContext.ts Outdated Show resolved Hide resolved
@@ -622,6 +623,13 @@ export class Page extends EventEmitter {
throw new Error('Not implemented');
}

/**
* Creates a Chrome Devtools Protocol session attached to the page.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Link to CDP website?

@OrKoN OrKoN merged commit d0c5b8e into main Jul 21, 2023
28 of 30 checks passed
@OrKoN OrKoN deleted the orkon/cdp-session-bidi branch July 21, 2023 12:03
@release-please release-please bot mentioned this pull request Jul 21, 2023
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.

None yet

2 participants