Page.setDocumentContentSets given markup as the document's HTML.
| Name | Type | Description |
|---|---|---|
frameId | FrameId | Frame id to set HTML for. |
html | string | HTML content to set. |
{
"id": 1,
"method": "Page.setDocumentContent",
"params": {
"frameId": "ABC123DEF456",
"html": "html-value"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Page.setDocumentContent', {"frameId": "ABC123DEF456", "html": "html-value"});
console.log(result);