Skip to main content
Module

x/puppeteer/mod.ts>Frame#setContent

A port of puppeteer running on Deno
Latest
method Frame.prototype.setContent
Re-export
import { Frame } from "https://deno.land/x/puppeteer@16.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[]; }
  • Options to configure how long before timing out and at what point to consider the content setting successful.

Returns

Promise<void>