puppeteer/new-docs/puppeteer.page.setcontent.md

24 lines
541 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Page](./puppeteer.page.md) &gt; [setContent](./puppeteer.page.setcontent.md)
## Page.setContent() method
<b>Signature:</b>
```typescript
setContent(html: string, options?: WaitForOptions): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| html | string | |
| options | WaitForOptions | |
<b>Returns:</b>
Promise&lt;void&gt;