2022-08-06 14:49:20 +00:00
---
sidebar_label: Frame.setContent
---
# Frame.setContent() method
Set the content of the frame.
2022-10-24 14:31:12 +00:00
#### Signature:
2022-08-06 14:49:20 +00:00
```typescript
class Frame {
2023-09-12 20:50:13 +00:00
abstract setContent(
2022-08-06 14:49:20 +00:00
html: string,
options?: {
timeout?: number;
waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[];
}
): Promise< void > ;
}
```
## Parameters
2023-03-06 13:53:56 +00:00
| Parameter | Type | Description |
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| html | string | HTML markup to assign to the page. |
2023-11-29 12:06:05 +00:00
| options | \{ timeout?: number; waitUntil?: [PuppeteerLifeCycleEvent ](./puppeteer.puppeteerlifecycleevent.md ) \| [PuppeteerLifeCycleEvent ](./puppeteer.puppeteerlifecycleevent.md )\[\]; \} | _(Optional)_ Options to configure how long before timing out and at what point to consider the content setting successful. |
2022-08-06 14:49:20 +00:00
**Returns:**
Promise< void>