mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
631 B
631 B
sidebar_label |
---|
Page.setContent |
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 |
(Optional) Parameters that has some properties. |
Promise<void>