setOuterHTML method

Future<void> setOuterHTML(
  1. NodeId nodeId,
  2. String outerHTML
)

Sets node HTML markup, returns new node id. nodeId Id of the node to set markup for. outerHTML Outer HTML markup to set.

Implementation

Future<void> setOuterHTML(NodeId nodeId, String outerHTML) async {
  await _client.send('DOM.setOuterHTML', {
    'nodeId': nodeId,
    'outerHTML': outerHTML,
  });
}