puppeteer-core
Version:
A high-level API to control headless Chrome over the DevTools Protocol
39 lines • 1 kB
JavaScript
/**
* @license
* Copyright 2024 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @internal
*/
export class CdpPreloadScript {
/**
* This is the ID of the preload script returned by
* Page.addScriptToEvaluateOnNewDocument in the main frame.
*
* Sub-frames would get a different CDP ID because
* addScriptToEvaluateOnNewDocument is called for each subframe. But
* users only see this ID and subframe IDs are internal to Puppeteer.
*/
constructor(mainFrame, id, source) {
this.
this.
this.
}
get id() {
return this.
}
get source() {
return this.
}
getIdForFrame(frame) {
return this.
}
setIdForFrame(frame, identifier) {
this.
}
}
//# sourceMappingURL=CdpPreloadScript.js.map