getDocument method
Unlike the standard WipDom.getDocument call, this will not reset the internal state of the debugger remote end when called multiple times on the same page.
Implementation
@override
Future<Node> getDocument() {
_root ??= _dom.getDocument().then((n) => _getOrCreateNodeFromNode(n));
return _root!;
}