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

x/pptr/mod.ts>Frame#waitForTimeout

Headless Chrome Deno API
Latest
method Frame.prototype.waitForTimeout
Re-export
import { Frame } from "https://deno.land/x/pptr@1.2.0/mod.ts";

Causes your script to wait for the given number of milliseconds.

Examples

Wait for 1 second:

await frame.waitForTimeout(1000);

Parameters

milliseconds: number
  • the number of milliseconds to wait.

Returns

Promise<void>