targets property

List<Target> targets

A list of all active targets inside the Browser. In case of multiple browser contexts, the method will return an array with all the targets in all browser contexts.

Implementation

List<Target> get targets => _targetManager
    .availableTargets()
    .values
    .where((target) => target.isInitialized)
    .toList();