setDocumentContent method

Future<void> setDocumentContent(
  1. FrameId frameId,
  2. String html
)

Sets given markup as the document's HTML. frameId Frame id to set HTML for. html HTML content to set.

Implementation

Future<void> setDocumentContent(FrameId frameId, String html) async {
  await _client.send('Page.setDocumentContent', {
    'frameId': frameId,
    'html': html,
  });
}