Browser.targets() method
Gets all active targets.
In case of multiple browser contexts, this returns all targets in all browser contexts.
Signature
class Browser {
abstract targets(): Target[];
}
Returns:
Target[]
Remarks
With CDP, this includes "tab" targets and targets with a subtype, such as prerendered pages.