Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/src/FrameManager.ts>FrameManager

Headless Chrome Deno API
Latest
class FrameManager
extends EventEmitter
import { FrameManager } from "https://deno.land/x/pptr@1.2.0/src/FrameManager.ts";

Constructors

new
FrameManager(
client: CDPSession,
page: Page,
ignoreHTTPSErrors: boolean,
timeoutSettings: TimeoutSettings,
)

Properties

private
_contextIdToContext: Map<number, ExecutionContext>
private
_frames: Map<string, Frame>
private
_isolatedWorlds: Set<string>
private
_mainFrame: Frame | null
private
_networkManager: NetworkManager
private
_page: Page
_client: CDPSession
_timeoutSettings: TimeoutSettings

Methods

private
_onExecutionContextDestroyed(executionContextId: number): void
private
_onFrameMoved(event: Protocol.Target.AttachedToTargetEvent)
private
_removeFramesRecursively(frame: Frame): void
_ensureIsolatedWorld(name: string): Promise<void>
_handleFrameTree(frameTree: Protocol.Page.FrameTree): void
_onExecutionContextCreated(contextPayload: Protocol.Runtime.ExecutionContextDescription): void
_onFrameAttached(frameId: string, parentFrameId?: string): void
_onFrameDetached(frameId: string): void
_onFrameNavigated(framePayload: Protocol.Page.Frame): void
_onFrameNavigatedWithinDocument(frameId: string, url: string): void
_onFrameStoppedLoading(frameId: string): void
_onLifecycleEvent(event: Protocol.Page.LifecycleEventEvent): void
frame(frameId: string): Frame | null
initialize(): Promise<void>
navigateFrame(
frame: Frame,
url: string,
options?: { referer?: string; timeout?: number; waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[]; },
): Promise<HTTPResponse | null>
waitForFrameNavigation(frame: Frame, options?: { timeout?: number; waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[]; }): Promise<HTTPResponse | null>