Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class LifecycleWatcher
import { LifecycleWatcher } from "https://deno.land/x/pptr@1.2.0/src/LifecycleWatcher.ts";

Constructors

new
LifecycleWatcher(
frameManager: FrameManager,
frame: Frame,
timeout: number,
)

Properties

_eventListeners: PuppeteerEventListener[]
_expectedLifecycle: ProtocolLifeCycleEvent[]
_frame: Frame
_frameManager: FrameManager
optional
_hasSameDocumentNavigation: boolean
_initialLoaderId: string
optional
_lifecycleCallback: () => void
_lifecyclePromise: Promise<void>
optional
_maximumTimer: number
optional
_navigationRequest: HTTPRequest | null
optional
_newDocumentNavigationCompleteCallback: (x: Error | null) => void
_newDocumentNavigationPromise: Promise<Error | null>
optional
_sameDocumentNavigationCompleteCallback: (x: Error | null) => void
_sameDocumentNavigationPromise: Promise<Error | null>
optional
_terminationCallback: (x: Error | null) => void
_terminationPromise: Promise<Error | null>
_timeout: number
_timeoutPromise: Promise<TimeoutError | null>

Methods

_onFrameDetached(frame: Frame): void
_onRequest(request: HTTPRequest): void
_terminate(error: Error): void
dispose(): void
lifecyclePromise(): Promise<void>
newDocumentNavigationPromise(): Promise<Error | null>
sameDocumentNavigationPromise(): Promise<Error | null>
timeoutOrTerminationPromise(): Promise<Error | TimeoutError | null>