chore: set content test

This commit is contained in:
Alex Rudenko 2024-05-22 13:13:46 +02:00
parent 97a4951d52
commit 40b4e2e9fe

View File

@ -283,7 +283,10 @@ export class CdpFrame extends Frame {
// We rely upon the fact that document.open() will reset frame lifecycle with "init" // We rely upon the fact that document.open() will reset frame lifecycle with "init"
// lifecycle event. @see https://crrev.com/608658 // 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( const watcher = new LifecycleWatcher(
this._frameManager.networkManager, this._frameManager.networkManager,