mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: set content test
This commit is contained in:
parent
97a4951d52
commit
40b4e2e9fe
@ -283,7 +283,10 @@ export class CdpFrame extends Frame {
|
||||
|
||||
// We rely upon the fact that document.open() will reset frame lifecycle with "init"
|
||||
// lifecycle event. @see https://crrev.com/608658
|
||||
await this.setFrameContent(html);
|
||||
await this.#client.send('Page.setDocumentContent', {
|
||||
html,
|
||||
frameId: this._id,
|
||||
});
|
||||
|
||||
const watcher = new LifecycleWatcher(
|
||||
this._frameManager.networkManager,
|
||||
|
Loading…
Reference in New Issue
Block a user