Skip to main content
Version: 22.14.0

Page.setContent() method

Set the content of the page.

Signature:

class Page {
setContent(html: string, options?: WaitForOptions): Promise<void>;
}

Parameters

Parameter

Type

Description

html

string

HTML markup to assign to the page.

options

WaitForOptions

(Optional) Parameters that has some properties.

Returns:

Promise<void>