Skip to content
Back to skills

Testdriver Double Click

ASecurity

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

  • 243 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 6, 2026
ai-agentsjavascriptgojava

Works with

  • vscode
  • cli

Security analysis

A100/100

Scanned September 22, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Testdriver Double Click?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Testdriver Double Click
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/testdriverai-testdriver-double-click/badge)](https://www.skillsdirectory.com/skills/testdriverai-testdriver-double-click)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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

```javascript
// 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

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

### Direct Double-Click with Selector

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

### Opening Files in VS Code

```javascript
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

```javascript
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

```javascript
// 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…