contentFrame property

Future<Frame?> contentFrame

Resolves to the content frame for element handles referencing iframe nodes, or null otherwise

Implementation

Future<Frame?> get contentFrame async {
  var nodeInfo = await executionContext.domApi
      .describeNode(objectId: remoteObject.objectId);

  if (nodeInfo.frameId == null) return null;
  return frameManager.frame(nodeInfo.frameId);
}