bundled-skills/webdriverio-skill/SKILL.md
Generates WebdriverIO (WDIO) automation tests in JavaScript or TypeScript. Supports local and TestMu AI cloud. Use when user mentions "WebdriverIO", "WDIO", "wdio.conf", "browser.url", "$", "$$". Triggers on: "WebdriverIO", "WDIO", "wdio", "browser.$".
npx skillsauth add FrancoStino/opencode-skills-antigravity webdriverio-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when you need generates WebdriverIO (WDIO) automation tests in JavaScript or TypeScript. Supports local and TestMu AI cloud. Use when user mentions "WebdriverIO", "WDIO", "wdio.conf", "browser.url", "$", "$$". Triggers on: "WebdriverIO", "WDIO", "wdio", "browser.$".
Default local. If mentions "cloud", "TestMu", "LambdaTest" → cloud via WDIO LambdaTest service.
| Signal | Runner | |--------|--------| | Default | Mocha | | "Jasmine" | Jasmine | | "Cucumber", "BDD" | Cucumber |
// ✅ Preferred
await $('[data-testid="submit"]').click();
await $('aria/Submit').click();
await $('button=Submit').click(); // text-based
// Chaining
await $('form').$('input[name="email"]').setValue('[email protected]');
// Multiple elements
const items = await $$('.list-item');
describe('Login', () => {
it('should login successfully', async () => {
await browser.url('/login');
await $('[data-testid="email"]').setValue('[email protected]');
await $('[data-testid="password"]').setValue('password123');
await $('[data-testid="submit"]').click();
await expect(browser).toHaveUrl(expect.stringContaining('/dashboard'));
});
});
class LoginPage {
get inputEmail() { return $('[data-testid="email"]'); }
get inputPassword() { return $('[data-testid="password"]'); }
get btnSubmit() { return $('[data-testid="submit"]'); }
async login(email, password) {
await this.inputEmail.setValue(email);
await this.inputPassword.setValue(password);
await this.btnSubmit.click();
}
}
module.exports = new LoginPage();
// wdio.conf.js
exports.config = {
user: process.env.LT_USERNAME,
key: process.env.LT_ACCESS_KEY,
hostname: 'hub.lambdatest.com',
port: 80,
path: '/wd/hub',
services: ['lambdatest'],
capabilities: [{
browserName: 'Chrome',
browserVersion: 'latest',
'LT:Options': {
platform: 'Windows 11',
build: 'WDIO Build',
name: 'WDIO Test',
video: true,
network: true,
}
}],
};
// Wait for element
await $('[data-testid="result"]').waitForDisplayed({ timeout: 10000 });
// Wait for condition
await browser.waitUntil(
async () => (await $('[data-testid="count"]').getText()) === '5',
{ timeout: 10000, timeoutMsg: 'Count did not reach 5' }
);
| Task | Command |
|------|---------|
| Setup | npm init wdio@latest |
| Run all | npx wdio run wdio.conf.js |
| Run specific | npx wdio run wdio.conf.js --spec ./test/login.js |
| Run suite | npx wdio run wdio.conf.js --suite smoke |
| Parallel | Set maxInstances: 5 in config |
| Screenshot | await browser.saveScreenshot('./screenshot.png') |
| File | When to Read |
|------|-------------|
| reference/cloud-integration.md | LambdaTest service, parallel, capabilities |
| reference/advanced-patterns.md | Custom commands, reporters, services |
reference/playbook.md| § | Section | Lines | |---|---------|-------| | 1 | Production Configuration | Multi-env, multi-browser configs | | 2 | Page Object Model | BasePage, LoginPage, DashboardPage | | 3 | Custom Commands | Browser + element commands, TypeScript | | 4 | Network Mocking | DevTools mock, abort, error simulation | | 5 | File Operations | Upload, download, drag & drop | | 6 | Multi-Tab, iFrame & Shadow DOM | Window handles, nested shadow | | 7 | Visual Regression | Image comparison service | | 8 | API Testing | Fetch-based, API+UI combined | | 9 | Mobile Testing | Appium service integration | | 10 | LambdaTest Integration | Cloud grid config | | 11 | CI/CD Integration | GitHub Actions, Docker Compose | | 12 | Debugging Quick-Reference | 11 common problems | | 13 | Best Practices Checklist | 14 items |
tools
Authorized security assessment of LLM applications and AI agents: prompt injection, tool abuse, RAG exposure, memory poisoning, system-prompt extraction, and agent-compliance engineering per OWASP LLM/ASI Top 10.
development
Builds two parameterized UI modes—流光溢彩白 (iridescent white) and 五彩斑斓黑 (colorful black)—with OKLCH, WebGL/CSS fallback, vision gating, screenshot QA, and total/per-color intensity reports. Use when a UI request names either mode or needs measured color parameters.
tools
Delegate coding tasks to the Kimi Code CLI (`kimi`) only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.
development
Front-end JavaScript reverse engineering: locate signature chains, analyze encrypted request parameters, sample runtime behavior, and reproduce logic locally in Node for evidence-based output.