Skip to content

AssetController

Defined in: asset.ts:35

hide(): Promise<void>

Defined in: asset.ts:59

Hides the asset overlay and records an assetEnd event. For image assets, also cancels any pending auto-hide timer.

Promise<void>


show(): Promise<void>

Defined in: asset.ts:54

Shows the asset overlay and records an assetStart event.

For image assets, show() blocks for the configured duration ms and then auto-records the assetEnd event. Calling hide() before the timer fires cancels the auto-hide.

Also directly awaitable: await assets.logo is equivalent to await assets.logo.show().

Promise<void>

await assets.logo // show image for its configured duration
await page.goto('/page')
await assets.clip.show() // start playing video overlay
await assets.clip.hide() // stop video overlay manually

then<T>(onfulfilled?, onrejected?): PromiseLike<T>

Defined in: asset.ts:61

T

((value) => T | PromiseLike<T>) | null

((reason) => T | PromiseLike<T>) | null

PromiseLike<T>