Skip to content
Testing
Skill

/testdriver-double-click

Perform a double-click action on an element or at specific coordinates

From plugin
testdriverai
35665 skills1 agent

Claude Code

$ npx -y skills add testdriverai/testdriverai --skill testdriver-double-click --agent claude-code

SKILL.md

testdriver-double-click.SKILL.md
name: testdriver:double-click
description: Perform a double-click action on an element or at specific coordinates

<!-- Generated from double-click.mdx. DO NOT EDIT. -->

Overview

The `doubleClick()` method does a double-click action on an element. You can call it on an [`Element`](/core-concepts/elements) instance. Or you can use it with a selector.

Syntax

// Double-click on an element
await element.doubleClick();

// Double-click using a selector
await ai.doubleClick('selector');

Parameters

When called on an `Element`, no parameters are required.

When called directly on the AI client:

| Parameter | Type | Description | |-----------|------|-------------| | `selector` | `string` | The selector describing the element to double-click |

Returns

It returns a `Promise<void>`. The promise resolves when the double-click action completes.

Examples

Double-Click on Found Element

const fileItem = await ai.find('README.md file');
await fileItem.doubleClick();

Direct Double-Click with Selector

await ai.doubleClick('README.md in the file list');

Opening Files in VS Code

import { test } from 'vitest';
import { vscode } from '@testdriver/sdk';

test('opens a file by double-clicking', async () => {
  const { ai } = await vscode();
  
  // Double-click to open a file in the explorer
  await ai.doubleClick('package.json in the file explorer');
  
  // Verify the file opened
  const editor = await ai.find('text editor showing package.json');
  expect(editor).toBeTruthy();
});

Opening Folders in File Manager

import { test } from 'vitest';
import { chrome } from '@testdriver/sdk';

test('navigates folders in Google Drive', async () => {
  const { ai } = await chrome('https://drive.google.com');
  
  // Double-click to open a folder
  await ai.doubleClick('Documents folder');
  
  // Wait for folder to open
  await ai.find('breadcrumb showing Documents');
});

Selecting Text with Double-Click

// Double-click to select a word
await ai.doubleClick('word "TestDriver" in the paragraph');

// Verify selection
const selectedText = await ai.exec('window.getSelection().toString()');
expect(selectedText).toBe('TestDriver');

Related Methods

  • [`click()`](/click) - Single click on an element
  • [`rightClick()`](/right-click) - Right-click to open context menu
  • [`mouseDown()`](/mouse-down) - Press mouse button without releasing
  • [`mouseUp()`](/mouse-up) - Release mouse button
  • [`hover()`](/hover) - Move mouse over element without clicking
Read more
@testdriverai
Ships withtestdriverai

Computer-Use SDK for E2E QA Testing

35665 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
356
Star history of testdriverai/testdriverai on GitHub, a chart by star-history.com

Other skills on testdriverai.

More skills from other plugins.

api-review

api-review

Produce the "Playwright 1.xx API Review" artifact for a range of commits - the public API additions and the breaking or behavior…

@microsoft@microsoftInstall Skill
add-e2e-selectors

add-e2e-selectors

Add reliable @grafana/e2e-selectors to interactive elements and key containers in the Grafana frontend. Use when adding e2e…

grafana5d78k
@grafana@grafanaInstall Skill
promptfoo-evals

promptfoo-evals

Write, refine, run, and QA promptfoo evaluation suites: promptfooconfig.yaml, prompts, providers, vars, tests, assertions,…

promptfoo13d27k
@promptfoo@promptfooInstall Skill
deepeval

deepeval

DeepEval evaluation workflow for AI agents and LLM applications. TRIGGER when the user wants to evaluate or improve an AI agent,…

@confident-ai@confident-aiInstall Skill

Questions about testdriver-double-click.

Which coding agents can use testdriver-double-click?
testdriver-double-click installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.