Skip to main content
Go to Latest
class LifecycleWatcher
import { LifecycleWatcher } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/common/LifecycleWatcher.d.ts";

Constructors

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

Properties

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

Methods

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