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

x/pptr/src/Page.ts>Page#waitForTimeout

Headless Chrome Deno API
Latest
method Page.prototype.waitForTimeout
import { Page } from "https://deno.land/x/pptr@1.2.0/src/Page.ts";

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

Examples

Wait for 1 second:

await page.waitForTimeout(1000);

Parameters

milliseconds: number
  • the number of milliseconds to wait.

Returns

Promise<void>