Skip to content
cccskills
FreePublished on GitHub

testdriver:wait

Pause the execution of the script for a specified duration.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md1.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

Description

The wait method stops the test for a number of milliseconds. Then it continues. Use this to add delays between actions, to wait for animations to complete, or to let state changes become stable.

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 it for simple delays. Wait for animations, transitions, or state changes after an action.
  • Do not use it to wait for an element. If you wait for a specific element to show, use find() with a timeout option:
    // ✅ 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');
    
  • Do not use very long timeouts. This keeps the tests efficient.
  • Use it only when necessary. The TestDriver redraw detection waits automatically for the screen and the network to become stable after each action.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

How the TestDriver agent behaves on GitHub issues, pull requests, and @mentions

The English summary is being prepared. Showing the original description.

testdriverai/testdriverai406Updated Sep 21, 2026

Execute natural language tasks using AI

The English summary is being prepared. Showing the original description.

testdriverai/testdriverai406Updated Sep 21, 2026

Make AI-powered assertions about screen state

The English summary is being prepared. Showing the original description.

testdriverai/testdriverai406Updated Sep 21, 2026

Deploy TestDriver on your AWS infrastructure using CloudFormation

The English summary is being prepared. Showing the original description.

testdriverai/testdriverai406Updated Sep 21, 2026

Speed up tests with screenshot-based caching

The English summary is being prepared. Showing the original description.

testdriverai/testdriverai406Updated Sep 21, 2026

How TestDriver learns your app and caches what it discovers for instant, deterministic replays

The English summary is being prepared. Showing the original description.

testdriverai/testdriverai406Updated Sep 21, 2026

See all skills by testdriverai

Report a problem with this skill