getTopLayerElements method

Future<List<NodeId>> getTopLayerElements()

Returns NodeIds of current top layer elements. Top layer is rendered closest to the user within a viewport, therefore its elements always appear on top of all other content. Returns: NodeIds of top layer elements

Implementation

Future<List<NodeId>> getTopLayerElements() async {
  var result = await _client.send('DOM.getTopLayerElements');
  return (result['nodeIds'] as List)
      .map((e) => NodeId.fromJson(e as int))
      .toList();
}