Module

x/puppeteer/mod.ts>TargetManager

A port of puppeteer running on Deno
Latest
interface TargetManager
implements EventEmitter
import { type TargetManager } from "https://dotland.deno.dev/x/puppeteer@16.2.0/mod.ts";

TargetManager encapsulates all interactions with CDP targets and is responsible for coordinating the configuration of targets with the rest of Puppeteer. Code outside of this class should not subscribe Target.* events and only use the TargetManager events.

There are two implementations: one for Chrome that uses CDP's auto-attach mechanism and one for Firefox because Firefox does not support auto-attach.

Methods

getAvailableTargets(): Map<string, Target>
initialize(): Promise<void>
dispose(): void
addTargetInterceptor(session: CDPSession, interceptor: TargetInterceptor): void
removeTargetInterceptor(session: CDPSession, interceptor: TargetInterceptor): void
import TargetManager
import { TargetManager } from "https://dotland.deno.dev/x/puppeteer@16.2.0/mod.ts";