testdriver:device-config
БесплатноБез исполняемых скриптовНе проверенLaunch browsers, desktop apps, and extensions in your TestDriver sandbox
от testdriverai★ 342 звезды на GitHubОб этом скилле
Provision methods are the starting point for most tests. They launch applications in your sandbox and prepare the environment for testing.
Chrome Browser
The most common starting point for web testing. Launches Chrome browser and navigates to a URL.
await testdriver.provision.chrome({
url: 'https://example.com',
});
Options
| Option | Type | Default | Description |
|---|---|---|---|
url |
string | 'http://testdriver-sandbox.vercel.app/' |
URL to navigate to |
maximized |
boolean | true |
Start browser maximized |
guest |
boolean | false |
Use guest mode (no profile) |
Example: Basic Web Test
import { describe, expect, it } from "vitest";
import { TestDriver } from "testdriverai/vitest/hooks";
describe("Login Flow", () => {
it("should log in successfully", async (context) => {
const testdriver = TestDriver(context);
await testdriver.provision.chrome({
url: 'https://myapp.com/login',
});
await testdriver.find("Email input").click();
await testdriver.type("[email protected]");
await testdriver.find("Password input").click();
await testdriver.type("password123");
await testdriver.find("Sign In button").click();
const result = await testdriver.assert("the dashboard is visible");
expect(result).toBeTruthy();
});
});
Chrome Extensions
Launch Chrome with a custom extension loaded. Supports both local extensions and Chrome Web Store extensions.
Load from Local Path
Clone or create an extension locally, then load it:
// First, get the extension onto the sandbox
await testdriver.exec(
'sh',
'git clone https://github.com/user/my-extension.git /tmp/my-extension',
60000
);
// Launch Chrome with the extension
await testdriver.provision.chromeExtension({
extensionPath: '/tmp/my-extension',
url: 'https://example.com'
});
Load from Chrome Web Store
Load any published extension by its Chrome Web Store ID:
await testdriver.provision.chromeExtension({
extensionId: 'cjpalhdlnbpafiamejdnhcphjbkeiagm', // uBlock Origin
url: 'https://example.com'
});
Options
| Option | Type | Default | Description |
|---|---|---|---|
extensionPath |
string | - | Local path to unpacked extension directory |
extensionId |
string | - | Chrome Web Store extension ID |
url |
string | - | URL to navigate to after launch |
maximized |
boolean | true |
Start browser maximized |
Example: Testing a Chrome Extension
import { describe, expect, it } from "vitest";
import { TestDriver } from "testdriverai/vitest/hooks";
describe("Chrome Extension Test", () => {
it("should load and interact with extension", async (context) => {
const testdriver = TestDriver(context);
// Clone extension from GitHub
await testdriver.exec(
'sh',
'git clone https://github.com/user/my-extension.git /tmp/my-extension',
60000,
true
);
// Launch Chrome with extension loaded
await testdriver.provision.chromeExtension({
extensionPath: '/tmp/my-extension',
url: 'https://testdriver.ai'
});
// Click extensions puzzle icon
const extensionsButton = await testdriver.find("puzzle-shaped icon in Chrome toolbar");
await extensionsButton.click();
// Interact with your extension
const myExtension = await testdriver.find("My Extension in the dropdown");
await myExtension.click();
const result = await testdriver.assert("extension popup is visible");
expect(result).toBeTruthy();
});
});
Desktop Apps
Download and install desktop applications. Supports .deb, .rpm, .msi, .exe, .AppImage, .dmg, .pkg, and shell scripts.
const filePath = await testdriver.provision.installer({
url: 'https://example.com/app.deb',
appName: 'MyApp', // Focus this app after install
launch: true, // Auto-launch after install
});
Options
| Option | Type | Default | Description |
|---|---|---|---|
url |
string | required | URL to download the installer from |
filename |
string | auto-detected | Filename to save as |
appName |
string | - | Application name to focus after install |
launch |
boolean | true |
Launch the app after installation |
Supported File Types
| Extension | OS | Install Method |
|---|
Установить testdriver:device-config в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл testdriver:device-config?
Launch browsers, desktop apps, and extensions in your TestDriver sandbox
Как установить скилл testdriver:device-config?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл testdriver:device-config запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic