diff --git a/packages/puppeteer-core/src/common/Frame.ts b/packages/puppeteer-core/src/common/Frame.ts index 5a030e30..3a9c5a05 100644 --- a/packages/puppeteer-core/src/common/Frame.ts +++ b/packages/puppeteer-core/src/common/Frame.ts @@ -72,6 +72,15 @@ export class CdpFrame extends Frame { }); } + /** + * This is used internally in DevTools. + * + * @internal + */ + _client(): CDPSession { + return this.#client; + } + /** * Updates the frame ID with the new ID. This happens when the main frame is * replaced by a different frame.