resolveNode method
Future<RemoteObject>
resolveNode({
- NodeId? nodeId,
- BackendNodeId? backendNodeId,
- String? objectGroup,
- ExecutionContextId? executionContextId,
Resolves the JavaScript node object for a given NodeId or BackendNodeId.
nodeId
Id of the node to resolve.
backendNodeId
Backend identifier of the node to resolve.
objectGroup
Symbolic group name that can be used to release multiple objects.
executionContextId
Execution context in which to resolve the node.
Returns: JavaScript object wrapper for given node.
Implementation
Future<runtime.RemoteObject> resolveNode(
{NodeId? nodeId,
dom.BackendNodeId? backendNodeId,
String? objectGroup,
runtime.ExecutionContextId? executionContextId}) async {
var result = await _client.send('DOM.resolveNode', {
if (nodeId != null) 'nodeId': nodeId,
if (backendNodeId != null) 'backendNodeId': backendNodeId,
if (objectGroup != null) 'objectGroup': objectGroup,
if (executionContextId != null) 'executionContextId': executionContextId,
});
return runtime.RemoteObject.fromJson(
result['object'] as Map<String, dynamic>);
}