Module

x/fresh/tests/deps.ts>Page#waitForTimeout

The next-gen web framework.
Extremely Popular
Go to Latest
method Page.prototype.waitForTimeout
Deprecated
Deprecated

Use new Promise(r => setTimeout(r, milliseconds));.

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

import { Page } from "https://dotland.deno.dev/x/fresh@1.5.2/tests/deps.ts";

Examples

Wait for 1 second:

await page.waitForTimeout(1000);

Parameters

milliseconds: number
  • the number of milliseconds to wait.

Returns

Promise<void>