Skip to content

humanDelay

humanDelay(min, max): Promise<void>

Defined in: utils/timing.ts:67

Sleep for a random duration (for human-like timing).

Useful for browser automation to appear more human-like.

number = 50

Minimum delay in milliseconds (default: 50)

number = 150

Maximum delay in milliseconds (default: 150)

Promise<void>

Promise that resolves after the random delay

// Default human-like delay (50-150ms)
await humanDelay();
// Custom range for slower actions
await humanDelay(100, 300);