Skip to main content
Module

x/puppeteer/mod.ts>ChromeTargetManager

A port of puppeteer running on Deno
Latest
class ChromeTargetManager
implements TargetManager
extends EventEmitter
import { ChromeTargetManager } from "https://deno.land/x/puppeteer@16.2.0/mod.ts";

ChromeTargetManager uses the CDP's auto-attach mechanism to intercept new targets and allow the rest of Puppeteer to configure listeners while the target is paused.

Constructors

new
ChromeTargetManager(
connection: Connection,
targetFactory: TargetFactory,
targetFilterCallback?: TargetFilterCallback,
)

Methods

addTargetInterceptor(session: CDPSession | Connection, interceptor: TargetInterceptor): void
dispose(): void
getAvailableTargets(): Map<string, Target>
initialize(): Promise<void>
removeTargetInterceptor(client: CDPSession | Connection, interceptor: TargetInterceptor): void