How the TestDriver agent behaves on GitHub issues, pull requests, and @mentions
中文简介正在准备中。当前显示原文说明。
Perform a double-click action on an element or at specific coordinates
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
The doubleClick() method does a double-click action on an element. You can call it on an Element instance. Or you can use it with a selector.
// Double-click on an element
await element.doubleClick();
// Double-click using a selector
await ai.doubleClick('selector');
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 |
It returns a Promise<void>. The promise resolves when the double-click action completes.
const fileItem = await ai.find('README.md file');
await fileItem.doubleClick();
await ai.doubleClick('README.md in the file list');
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();
});
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');
});
// 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');
click() - Single click on an elementrightClick() - Right-click to open context menumouseDown() - Press mouse button without releasingmouseUp() - Release mouse buttonhover() - Move mouse over element without clicking还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
How the TestDriver agent behaves on GitHub issues, pull requests, and @mentions
中文简介正在准备中。当前显示原文说明。
Execute natural language tasks using AI
中文简介正在准备中。当前显示原文说明。
Make AI-powered assertions about screen state
中文简介正在准备中。当前显示原文说明。
Deploy TestDriver on your AWS infrastructure using CloudFormation
中文简介正在准备中。当前显示原文说明。
Speed up tests with screenshot-based caching
中文简介正在准备中。当前显示原文说明。
How TestDriver learns your app and caches what it discovers for instant, deterministic replays
中文简介正在准备中。当前显示原文说明。