Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>Frame#setContent

Headless Chrome Deno API
Latest
method Frame.prototype.setContent
Re-export
import { Frame } from "https://deno.land/x/pptr@1.2.0/mod.ts";

Set the content of the frame.

Parameters

html: string
  • HTML markup to assign to the page.
optional
options: { timeout?: number; waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[]; } = [UNSUPPORTED]
  • options to configure how long before timing out and at what point to consider the content setting successful.

Returns

Promise<void>