mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
660 B
660 B
sidebar_label
| sidebar_label |
|---|
| Page.setContent |
Page.setContent() method
Set the content of the page.
Signature
class Page {
setContent(html: string, options?: SetContentWaitForOptions): Promise<void>;
}
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
html |
string |
HTML markup to assign to the page. |
|
options |
(Optional) Parameters that has some properties. |
Returns:
Promise<void>