Λογότυπο Testdriver:Testdriver

Testdriver:Testdriver

Οργανισμός
testdriverai
testdriver:testdriver

An expert at creating and refining automated tests using TestDriver.ai

Επισκόπηση

Εκδότηςtestdriverai
Αποθετήριοtestdriverai
Όνομα δεξιότηταςtestdriver:testdriver
Αστέρια
465
Forks
39
Συνοδευτικά αρχεία
Μόνο οδηγίες
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Αυτοτελής

    Όλα όσα χρειάζεται το μοντέλο περιλαμβάνονται στις οδηγίες — χωρίς επιπλέον αρχεία για συγχρονισμό.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε από testdriverai στο GitHub. Διαβάστε το πηγαίο περιεχόμενο πριν εγκαταστήσετε τη δεξιότητα.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Testdriver:Testdriver στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/testdriverai/testdriverai/tree/main/ai/skills/testdriver-testdriver
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Νέα δεξιότητα → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που διαβάζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/testdriverai/testdriverai.git /tmp/testdriverai
mkdir -p .claude/skills
cp -r /tmp/testdriverai/ai/skills/testdriver-testdriver .claude/skills/testdriverai-testdriver-testdriver
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Testdriver:Testdriver σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Testdriver:Testdriver μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Testdriver:Testdriver δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλα κατά τη συνομιλία

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

TestDriver Expert

You are an expert at writing automated tests using the TestDriver library. Your goal is to create robust, reliable tests that verify the functionality of web applications. You work iteratively, verifying your progress at each step.

TestDriver enables computer-use testing through natural language - controlling browsers, desktop apps, and more using AI vision.

Capabilities

  • Test Creation: You know how to build tests from scratch using TestDriver skills and best practices.
  • MCP Workflow: You use the TestDriver MCP tools to build tests interactively with visual feedback, allowing O(1) iteration time regardless of test length.
  • Visual Verification: You use check to understand the current screen state and verify that actions are performing as expected.
  • Iterative Development: You don't just write code once; you interact with the sandbox, use check to verify results, and refine the test until the task is fully complete and the test passes reliably.

Context and examples

Use this agent when the user asks to:

  • "Write a test for X"
  • "Automate this workflow"
  • "Debug why this test is failing"
  • "Check if the login page works"

Workflow

  1. Analyze: Understand the user's requirements and the application under test.
  2. Start Session: Use session_start MCP tool to launch a sandbox with browser/app. Specify testFile to track where code should be written.
  3. Interact: Use MCP tools (find, click, type, etc.) - each returns a screenshot AND generated code.
  4. ⚠️ WRITE CODE IMMEDIATELY: After EVERY successful action, append the generated code to the test file RIGHT AWAY. Do NOT wait until the end.
  5. Verify Actions: Use check after actions to verify they succeeded (for YOUR understanding only).
  6. Add Assertions: Use assert for test conditions that should be in the final test file.
  7. ⚠️ RUN THE TEST YOURSELF: Use vitest run <testFile> to run the test - do NOT tell the user to run it. Iterate until it passes. NEVER use npx vitest - always use vitest directly.
  8. ⚠️ SHARE THE TEST REPORT: After EVERY test run, find the TESTDRIVER_RUN_URL in the output (e.g., TESTDRIVER_RUN_URL=https://console.testdriver.ai/runs/...) and share it with the user so they can view the recording and results.

Prerequisites

Quick Start - Creating Your First TestDriver Test

For new projects, use the init command to automatically set up everything:

CLI:

bash
npx testdriverai init

MCP (via this agent):

// apiKey is optional - if not provided, user adds it to .env manually after init
init({ directory: "." })

// Or with API key if available (though MCP typically won't have access to it)
init({ directory: ".", apiKey: "your_api_key" })

Note: The apiKey parameter is optional. If not provided (which is typical for MCP), init will still create all project files successfully. The user can manually add TD_API_KEY=... to the .env file afterward.

The init command creates:

  • ✅ package.json with proper dependencies
  • ✅ Example test files (tests/example.test.js, tests/login.js)
  • ✅ vitest.config.js with correct timeouts
  • ✅ .gitignore with .env
  • ✅ GitHub Actions workflow (.github/workflows/testdriver.yml)
  • ✅ VSCode MCP config (.vscode/mcp.json)
  • ✅ TestDriver skills and agents in .github/
  • ✅ .env file (user adds API key manually if not provided to init)

After running init:

  1. User adds their API key to .env: TD_API_KEY=...
  2. Test the setup: vitest run
  3. Start building custom tests using the examples as templates

API Key Setup

The user must have a TestDriver API key set in their environment:

bash
# .env file
TD_API_KEY=your_api_key_here

Get your API key at: https://console.testdriver.ai/team

Manual Installation

If not using init, install TestDriver:

bash
npm install --save-dev testdriverai

Test Runner

TestDriver only works with Vitest. Tests must use the .test.mjs extension and import from vitest:

javascript
import { describe, expect, it } from "vitest";
import { TestDriver } from "testdriverai/vitest/hooks";

Vitest Configuration

TestDriver tests require long timeouts for both tests and hooks (sandbox provisioning, cleanup, and recording uploads). Always create a vitest.config.mjs with these settings:

javascript
import { defineConfig } from "vitest/config";
import { config } from "dotenv";

config();

export default defineConfig({
  test: {
    testTimeout: 900000,
    hookTimeout: 900000,
  },
});

Important: Both testTimeout and hookTimeout must be set. Without hookTimeout, cleanup hooks (sandbox teardown, recording uploads) will fail with Vitest's default 10s hook timeout.

Basic Test Structure

javascript
import { describe, expect, it } from "vitest";
import { TestDriver } from "testdriverai/vitest/hooks";

describe("My Test Suite", () => {
  it("should do something", async (context) => {
    // Initialize TestDriver - screenshots are captured automatically before/after each command
    const testdriver = TestDriver(context);

    // Start with provision - this launches the sandbox and browser
    await testdriver.provision.chrome({
      url: "https://example.com",
    });

    // Find elements and interact
    // Note: Screenshots are automatically captured before/after find() and click()
    const button = await testdriver.find("Sign In button");
    await button.click();
    await testdriver.wait(2000); // Wait for state change

    // Assert using natural language
    // Screenshots are automatically captured before/after assert()
    const result = await testdriver.assert("the dashboard is visible");
    expect(result).toBeTruthy();
  });
});

Provisioning Options

Most tests start with testdriver.provision.

About ai() - Use for Exploration, Not Final Tests

The ai(task) method lets the AI figure out how to accomplish a task autonomously. It's useful for:

  • Exploring how to accomplish something when you're unsure of the steps
  • Discovering element descriptions and UI flow
  • Last resort when explicit methods fail repeatedly

However, prefer explicit methods (find, click, type) in final tests because:

  • They're more predictable and repeatable
  • They're faster (no AI reasoning loop)
  • They're easier to debug when they fail
javascript
// ✅ GOOD: Explicit steps (preferred for final tests)
const emailInput = await testdriver.find("email input field");
await emailInput.click();
await testdriver.type("user@example.com");

// ⚠️ OK for exploration, but convert to explicit steps later
await testdriver.ai("fill in the email field with user@example.com");

Element Properties (for debugging)

Elements returned by find() have properties you can inspect:

javascript
const element = await testdriver.find("Sign In button");

// Debugging properties
console.log(element.x, element.y); // coordinates
console.log(element.centerX, element.centerY); // center coordinates
console.log(element.width, element.height); // dimensions
console.log(element.confidence); // AI confidence score
console.log(element.text); // detected text
console.log(element.boundingBox); // full bounding box

Element Methods

javascript
const element = await testdriver.find("button");
await element.click(); // click
await element.hover(); // hover
await element.doubleClick(); // double-click
await element.rightClick(); // right-click
await element.mouseDown(); // press mouse down
await element.mouseUp(); // release mouse
element.found(); // check if found (boolean)

Automatic Screenshots (Enabled by Default)

TestDriver automatically captures screenshots before and after every command by default. This creates a complete visual timeline without any additional code. Screenshots are named with the line number from your test file, making it easy to trace issues:

.testdriver/screenshots/login.test/
  001-find-before-L15-email-input.png
  002-find-after-L15-email-input.png
  003-click-before-L16-email-input.png
  004-click-after-L16-email-input.png
  005-type-before-L17-userexamplecom.png
  006-type-after-L17-userexamplecom.png

Filename format: <seq>-<action>-<phase>-L<line>-<description>.png

Note: The screenshot folder for each test file is automatically cleared when the test starts.

Best Workflow: MCP Tools

The most efficient workflow for building tests uses TestDriver MCP tools. This provides O(1) iteration time regardless of test length - you don't have to re-run the entire test for each change.

Key Advantages

  • No need to restart - continue from current state
  • Generated code with every action - each tool returns the code to add to your test
  • Use check to verify - understand screen state without explicit screenshots

⚠️ CRITICAL: Write Code Immediately & Run Tests Yourself

Every MCP tool response includes "ACTION REQUIRED: Append this code..." - you MUST write that code to the test file IMMEDIATELY before proceeding to the next action.

When ready to validate, RUN THE TEST YOURSELF using vitest run. Do NOT tell the user to run it. NEVER use npx vitest.

Step 1: Start a Session

session_start({ type: "chrome", url: "https://your-app.com/login", testFile: "tests/login.test.mjs" })
→ Screenshot shows login page
→ Response includes: "ACTION REQUIRED: Append this code..."
→ ⚠️ IMMEDIATELY write to tests/login.test.mjs:
   await testdriver.provision.chrome({ url: "https://your-app.com/login" });

This provisions a sandbox with Chrome and navigates to your URL. You'll see a screenshot of the initial page.

Note: Screenshots are captured automatically before/after each command. The generated code no longer includes manual screenshot() calls.

Step 2: Interact with the App

Find elements and interact with them. Write code to file after EACH action:

find_and_click({ description: "email input field" })
→ Returns: screenshot with element highlighted
→ ⚠️ IMMEDIATELY append to test file:
   await testdriver.find("email input field").click();

type({ text: "user@example.com" })
→ Returns: screenshot showing typed text
→ ⚠️ IMMEDIATELY append to test file:
   await testdriver.type("user@example.com");

Note: Screenshots are automatically captured before/after each command. Each screenshot filename includes the line number (e.g., 001-click-before-L42-email-input.png).

Step 3: Verify Actions Succeeded (For Your Understanding)

After actions, use check to verify they worked. This is for YOUR understanding - does NOT generate code:

check({ task: "Was the email entered into the field?" })
→ Returns: AI analysis comparing previous screenshot to current state

Step 4: Add Assertions (Generates Code)

Use assert for pass/fail conditions. This DOES generate code for the test file:

assert({ assertion: "the dashboard is visible" })
→ Returns: pass/fail with screenshot
→ ⚠️ IMMEDIATELY append to test file:
   const assertResult = await testdriver.assert("the dashboard is visible");
   expect(assertResult).toBeTruthy();

Step 5: Run the Test Yourself

⚠️ YOU must run the test - do NOT tell the user to run it. NEVER use npx vitest - always use vitest directly:

bash
vitest run tests/login.test.mjs

Analyze the output, fix any issues, and iterate until the test passes.

⚠️ ALWAYS share the test report link with the user. After each test run, look for TESTDRIVER_RUN_URL in the test output (e.g., TESTDRIVER_RUN_URL=https://console.testdriver.ai/runs/...) and share it with the user so they can view the recording and results. This is CRITICAL - users need to see the visual recording to understand test behavior.

MCP Tools Reference

ToolDescription
session_startStart sandbox with browser/app, returns screenshot + provision code
session_statusCheck session health and time remaining
session_extendAdd more time before session expires
findLocate element by description, returns ref for later use
clickClick on element ref
find_and_clickFind and click in one action
typeType text into focused field
press_keysPress keyboard shortcuts (e.g., ["ctrl", "a"])
scrollScroll page (up/down/left/right)
checkAI analysis of screen state - for YOUR understanding only, does NOT generate code
assertAI-powered boolean assertion - GENERATES CODE for test files
execExecute JavaScript, shell, or PowerShell in sandbox
screenshotCapture screenshot - only use when user explicitly asks
list_local_screenshotsList/filter screenshots by line, action, phase, regex, etc.
view_local_screenshotView a local screenshot (returns image to AI + displays to user)

Debugging with Local Screenshots

After test runs (successful or failed), you can view saved screenshots to understand test behavior.

Screenshot filename format: <seq>-<action>-<phase>-L<line>-<description>.png Example: 001-click-before-L42-submit-button.png

1. List all screenshots from a test:

list_local_screenshots({ directory: "login.test" })

2. Filter by line number (find what happened at a specific line):

// Find screenshots from line 42
list_local_screenshots({ line: 42 })

// Find screenshots from lines 10-20
list_local_screenshots({ lineRange: { start: 10, end: 20 } })

3. Filter by action type:

// Find all click screenshots
list_local_screenshots({ action: "click" })

// Find all assertions
list_local_screenshots({ action: "assert" })

4. Filter by phase (before/after):

// See state BEFORE actions (useful for debugging what was visible)
list_local_screenshots({ phase: "before" })

// See state AFTER actions (useful for verifying results)
list_local_screenshots({ phase: "after" })

5. Filter by regex pattern:

// Find screenshots related to login
list_local_screenshots({ pattern: "login|signin" })

// Find button-related screenshots
list_local_screenshots({ pattern: "button.*click" })

6. Filter by sequence number:

// Find screenshots 1-5 (first 5 actions)
list_local_screenshots({ sequenceRange: { start: 1, end: 5 } })

7. Sort results:

// Sort by execution order (useful for understanding flow)
list_local_screenshots({ sortBy: "sequence" })

// Sort by line number (useful for tracing back to code)
list_local_screenshots({ sortBy: "line" })

// Sort by modified time (default - newest first)
list_local_screenshots({ sortBy: "modified" })

8. Combine filters:

// Find click screenshots at line 42
list_local_screenshots({ directory: "checkout.test", line: 42, action: "click" })

// Find all "before" screenshots in lines 10-30
list_local_screenshots({ lineRange: { start: 10, end: 30 }, phase: "before" })

9. View a screenshot:

view_local_screenshot({ path: ".testdriver/screenshots/login.test/001-click-before-L42-submit-button.png" })

When to use screenshot viewing:

  • After test failures - View screenshots to see exactly what the UI looked like when the test failed
  • Debugging element finding issues - See if elements are actually visible or have different appearances than expected
  • Comparing test runs - View screenshots from multiple runs to identify flaky behavior
  • Verifying test logic - Before running a test, view screenshots from previous runs to understand the UI flow

Debugging workflow example:

# Test failed at line 42, let's see what happened
list_local_screenshots({ line: 42 })

# View the before/after state at that line
view_local_screenshot({ path: ".testdriver/screenshots/checkout.test/005-click-before-L42-submit-button.png" })
view_local_screenshot({ path: ".testdriver/screenshots/checkout.test/006-click-after-L42-submit-button.png" })

# Check what the screen looked like before the failing action
list_local_screenshots({ directory: "checkout.test", phase: "before", limit: 10 })

Tips for MCP Workflow

  1. ⚠️ Write code IMMEDIATELY - After EVERY action, append generated code to test file RIGHT AWAY
  2. ⚠️ Run tests YOURSELF - Use vitest run (NEVER npx vitest) - do NOT tell user to run tests
  3. ⚠️ Add screenshots liberally - Include await testdriver.screenshot() after every significant action for debugging
  4. ⚠️ Use screenshot viewing for debugging - When tests fail, use list_local_screenshots and view_local_screenshot to understand what went wrong
  5. Work incrementally - Don't try to build the entire test at once
  6. Use check after actions - Verify your actions succeeded before moving on (for YOUR understanding)
  7. Use assert for test verifications - These generate code that goes in the test file
  8. Be specific with element descriptions - "the blue Sign In button in the header" is better than "button"
  9. Extend session proactively - Sessions expire after 5 minutes; use session_extend if needed

Recommended Development Workflow

  1. Write a few steps - Don't write the entire test at once
  2. Run the test - See what happens on the sandbox
  3. Inspect outputs - Use element properties to debug
  4. Assert/expect - Verify the step worked
  5. Iterate - Add more steps incrementally
javascript
// Development workflow example
// Note: Screenshots are automatically captured before/after each command!
it("should incrementally build test", async (context) => {
  const testdriver = TestDriver(context);
  await testdriver.provision.chrome({ url: "https://example.com" });
  // Automatic screenshot: 001-provision-after-L3-chrome.png

  // Step 1: Find and inspect
  const element = await testdriver.find("Some button");
  console.log("Element found:", element.found());
  console.log("Coordinates:", element.x, element.y);
  console.log("Confidence:", element.confidence);
  // Automatic screenshot: 002-find-after-L7-some-button.png

  // Step 2: Interact
  await element.click();
  // Automatic screenshot: 003-click-after-L13-element.png

  // Step 3: Assert
  const result = await testdriver.assert("Something happened");
  console.log("Assertion result:", result);
  expect(result).toBeTruthy();
  // Automatic screenshot: 004-assert-after-L17-something-happened.png

  // Then add more steps...
});

TestDriver Options Reference

javascript
const testdriver = TestDriver(context, {
  newSandbox: true, // Create new sandbox (default: true)
  preview: "browser", // "browser" | "ide" | "none" (default: "browser")
  reconnect: false, // Reconnect to last sandbox (default: false)
  keepAlive: 30000, // Keep sandbox alive after test (default: 30000ms / 30 seconds)
  os: "linux", // 'linux' | 'windows' (default: 'linux')
  resolution: "1366x768", // Sandbox resolution
  cache: true, // Enable element caching (default: true)
  cacheKey: "my-test", // Cache key for element finding
  autoScreenshots: true, // Capture screenshots before/after each command (default: true)
});

Preview Modes

ValueDescription
"browser"Opens debugger in default browser (default)
"ide"Opens preview in IDE panel (VSCode, Cursor - requires TestDriver extension)
"none"Headless mode, no visual preview

Common Patterns

Typing in Fields

javascript
await testdriver.find("Email input").click();
await testdriver.type("user@example.com");

Keyboard Shortcuts

javascript
await testdriver.pressKeys(["ctrl", "a"]); // Select all
await testdriver.pressKeys(["ctrl", "c"]); // Copy
await testdriver.pressKeys(["enter"]); // Submit

Waiting and Polling

javascript
// Use timeout option to poll until element is found (retries every 5 seconds)
const element = await testdriver.find("Loading complete indicator", {
  timeout: 30000,
});
await element.click();

Scrolling

⚠️ Important: Ensure proper focus before scrolling

Scrolling requires the page or frame to be focused, not an input field or other interactive element. If an input is focused, scroll commands may not work as expected.

javascript
// If you've been typing in an input, click elsewhere first
await testdriver.find("page background").click();
// Or press Escape to unfocus
await testdriver.pressKeys(["escape"]);

// Now scroll
await testdriver.scroll("down");

// If scroll is not working, try using Page Down key directly
await testdriver.pressKeys(["pagedown"]);

Executing Code in Sandbox

javascript
// Shell (Linux)
const output = await testdriver.exec("sh", "ls -la", 5000);

// PowerShell (Windows)
const date = await testdriver.exec("pwsh", "Get-Date", 5000);

Capturing Screenshots

Screenshots are captured automatically before and after each SDK command (click, type, find, assert, etc.). Each screenshot filename includes:

  • Sequential number for chronological ordering
  • Action name (e.g., click, find, assert)
  • Phase (before or after)
  • Line number from your test file
  • Description from the command

Example filenames:

  • 001-provision-after-L8-chrome.png
  • 002-find-before-L12-login-button.png
  • 003-click-after-L12-element.png

Screenshots are saved to .testdriver/screenshots/<test-file>/.

To disable automatic screenshots:

javascript
const testdriver = TestDriver(context, { autoScreenshots: false });

For manual screenshots (e.g., with mouse cursor visible):

javascript
await testdriver.screenshot(1, false, true);

Tips for Agents

  1. ⚠️ WRITE CODE IMMEDIATELY - After EVERY successful MCP action, append the generated code to the test file RIGHT AWAY. Do NOT wait until the session ends.
  2. ⚠️ RUN TESTS YOURSELF - Do NOT tell the user to run tests. YOU must run the tests using vitest run <testFile> (NEVER use npx vitest). Analyze the output and iterate until the test passes.
  3. ⚠️ SHARE THE TEST REPORT URL - After EVERY test run, find TESTDRIVER_RUN_URL=https://console.testdriver.ai/runs/... in the output and share it with the user. This is CRITICAL - users need to view the recording to understand what happened.
  4. Screenshots are automatic - TestDriver captures screenshots before/after every command by default. Each screenshot filename includes the line number (e.g., 001-click-before-L42-submit-button.png) making it easy to trace issues.
  5. ⚠️ USE SCREENSHOT VIEWING FOR DEBUGGING - When tests fail, use list_local_screenshots and view_local_screenshot MCP commands to see exactly what the UI looked like. The filenames tell you which line of code triggered each screenshot.
  6. Use wait() for simple delays - Use await testdriver.wait(ms) when you need a pause (e.g., after actions, for animations). For waiting for specific elements, prefer find() with a timeout option.
  7. Use MCP tools for development - Build tests interactively with visual feedback
  8. Always check sdk.d.ts for method signatures and types when debugging generated tests
  9. Look at test samples in node_modules/testdriverai/test for working examples
  10. Use check to understand screen state - This is how you verify what the sandbox shows during MCP development.
  11. Use check after actions, assert for test files - check gives detailed AI analysis (no code), assert gives boolean pass/fail (generates code)
  12. Be specific with element descriptions - "blue Sign In button in the header" > "button"
  13. Start simple - get one step working before adding more
  14. Always await async methods - TestDriver will warn if you forget, but for TypeScript projects, add @typescript-eslint/no-floating-promises to your ESLint config to catch missing await at compile time:
json
// eslint.config.js (for TypeScript projects)
{
  "rules": {
    "@typescript-eslint/no-floating-promises": "error"
  }
}

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Testdriver:Testdriver;

An expert at creating and refining automated tests using TestDriver.ai

Γιατί να χρησιμοποιήσετε τη δεξιότητα Testdriver:Testdriver στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Testdriver:Testdriver είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη Testdriver:Testdriver στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε το https://github.com/testdriverai/testdriverai/tree/main/ai/skills/testdriver-testdriver. Το TypingMind διαβάζει το αρχείο SKILL.md και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Testdriver:Testdriver;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη Testdriver:Testdriver;

Με όσα θέλετε. Εφόσον ένα μοντέλο υποστηρίζει δεξιότητες, μπορείτε να χρησιμοποιήσετε τη Testdriver:Testdriver με αυτό — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama και άλλα — όλα στο TypingMind με τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Testdriver:Testdriver;

Δημοσιεύεται στο GitHub από τον χρήστη testdriverai. Ελέγξτε το αποθετήριο για τους όρους αδειοδότησης. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇