agentsclimarketplace

Testdriver wait

Skill testdriverai/testdriverai/ai/skills/testdriver-wait

Pause the execution of the script for a specified duration.From its SKILL.md

Install
npx -y skills add testdriverai/testdriverai --skill testdriver-wait

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.7 KB, 349 tokens by cl100k_base, as published. Nobody here has run it

<!-- Generated from wait.mdx. DO NOT EDIT. -->

Description

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.

Syntax

await testdriver.wait(timeout);

Arguments

ArgumentTypeDefaultDescription
timeoutnumber3000The duration in milliseconds to wait.

Examples

// 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();

Best Practices

  • Use for simple delays — waiting for animations, transitions, or state changes after an action.
  • Avoid for element waiting — if you're waiting for a specific element to appear, use 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');
    
  • Avoid excessively long timeouts to keep tests efficient.
  • Use sparingly — TestDriver's redraw detection automatically waits for screen and network stability after each action.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.