Appearance
Function: wait()
ts
function wait(duration: number): Promise<void>;Defined in: src/wait/waiters/waitTime.ts:12
Wait for a specified duration.
Parameters
| Parameter | Type | Description |
|---|---|---|
duration | number | Time to wait, in milliseconds. |
Returns
Promise<void>
Example
ts
// Pause before the next click so the page can settle
await wait(500);