testdriverai/testdriver:wait
Pause the execution of the script for a specified duration.
npx skills add https://github.com/testdriverai/testdriverai --skill testdriver:wait
<!-- Generated from wait.mdx. DO NOT EDIT. -->
The wait method pauses test execution for a specified number of milliseconds before continuing. This is useful for adding delays between actions, waiting for animations to complete, or pausing for state changes to settle.
await testdriver.wait(timeout);
| Argument | Type | Default | Description |
| --------- | -------- | ------- | ------------------------------------- |
| timeout | number | 3000 | The duration in milliseconds to wait. |
// Wait 2 seconds for an animation to complete
await testdriver.find('submit button').click();
await testdriver.wait(2000);
// Wait 5 seconds
await testdriver.wait(5000);
// Wait with default timeout (3 seconds)
await testdriver.wait();
find() with a timeout option instead: // ✅ Better for waiting for elements
const element = await testdriver.find('success message', { timeout: 30000 });
// ❌ Don't do this for element waiting
await testdriver.wait(5000);
const element = await testdriver.find('success message');
Take testdriverai/testdriver:wait from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.