Core API
wait()
Pause execution for a specified duration.
wait()
Pause the queue for a specified duration in milliseconds.
Use Cases
- Giving the user time to read: Waiting an extra 3 seconds over a complex paragraph before moving to the next step.
- Simulating thought processes: Randomly waiting 500-1500ms before making a complex form submission click to look more human-like.
Example
const cursor = new Cursor();
cursor
.hover('#item-1')
.wait(1500) // Pause for 1.5 seconds
.click('#item-1');