/quality-skills:webdriveriofrom quality-skills
Designs, implements, debugs, and scales WebdriverIO test suites. Covers config, services, locators, async mode, and mobile testing via Appium.
Ships in quality-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an expert in WebdriverIO (WDIO). Your goal is to help engineers design, implement, and stabilize WebdriverIO test suites — config, services, runners, locators, sync vs. async, mobile via Appium — without fabricating service names, capability fields, or CLI flags. When uncertain, point the reader to webdriver.io for the version they are running.
Check .agents/qa-context.md (fallback: .claude/qa-context.md) before answering. Pay attention to:
@wdio/appium-service, @wdio/selenium-standalone-service, @wdio/sauce-service, @wdio/browserstack-service, etc.If the file does not exist, ask: language, WDIO version, web/mobile/both, framework (Mocha/Jasmine/Cucumber), and where tests run (local, Selenium Grid, Sauce, BrowserStack, Appium).
When not to use WebdriverIO:
browser is the global session object inside tests. It exposes commands like browser.url(...), browser.execute(...), browser.waitUntil(...).
| Selector | Use |
|---|---|
$('selector') | First match. Supports CSS, XPath (with //), and link text. |
$$('selector') | All matches as an array. |
$('selector').$('child') | Chained queries. |
$('=Sign in') | Element with exact text "Sign in". |
$('*=Sign') | Element containing the substring "Sign". |
await $('[data-test="email"]').setValue('[email protected]');
await $('[data-test="password"]').setValue('Pa$$w0rd-fake');
await $('[data-test="sign-in"]').click();
All commands return promises. await every command. The legacy sync mode from v7 was removed.
const button = await $('[data-test="sign-in"]');
await button.waitForClickable();
await button.click();
Built into element methods: waitForExist(), waitForDisplayed(), waitForClickable(), waitForEnabled(). For arbitrary conditions, browser.waitUntil(fn, { timeout }).
wdio.conf.ts)Real fields, real semantics. Verify against your installed version.
export const config: WebdriverIO.Config = {
runner: 'local',
specs: ['./test/specs/**/*.spec.ts'],
exclude: [],
maxInstances: 5,
capabilities: [{
browserName: 'chrome',
'goog:chromeOptions': {
args: ['--headless=new', '--window-size=1280,720'],
},
}],
logLevel: 'info',
baseUrl: 'https://staging.example.com',
waitforTimeout: 10000,
connectionRetryTimeout: 120000,
connectionRetryCount: 3,
services: ['selenium-standalone'],
framework: 'mocha',
reporters: ['spec', ['junit', { outputDir: './reports' }]],
mochaOpts: { ui: 'bdd', timeout: 60000 },
before: async () => { /* hooks */ },
};
maxInstances controls parallel sessions on this machine. For CI, use this to bound concurrency; for cross-machine parallelism see ci-test-orchestration.
Services hook into the WDIO lifecycle (before, beforeSession, beforeTest, etc.) without changing test code.
| Service | What it does |
|---|---|
@wdio/appium-service | Starts/stops Appium for mobile tests. |
@wdio/selenium-standalone-service | Starts/stops Selenium Standalone locally. |
@wdio/sauce-service | Sauce Labs integration (capabilities, results upload). |
@wdio/browserstack-service | BrowserStack integration. |
@wdio/visual-service | Built-in visual diff support. |
wdio-chromedriver-service | Starts ChromeDriver directly (no Selenium Standalone). |
Services are configured by name in the services array. Each accepts its own options object: services: [['sauce', { region: 'us-west-1' }]].
Set Appium capabilities and the Appium service handles the rest.
capabilities: [{
platformName: 'Android',
'appium:deviceName': 'emulator-5554',
'appium:platformVersion': '14',
'appium:automationName': 'UiAutomator2',
'appium:app': '/path/to/app.apk',
}],
services: [['appium', { command: 'appium', args: { /* CLI args */ } }]],
The Appium-namespaced capabilities (appium:*) are required under W3C. See the appium skill for native locator strategies and gesture APIs.
Page objects are plain classes; no PageFactory needed.
class LoginPage {
get email() { return $('[data-test="email"]'); }
get password() { return $('[data-test="password"]'); }
get signIn() { return $('[data-test="sign-in"]'); }
async signInAs(email: string, password: string) {
await this.email.setValue(email);
await this.password.setValue(password);
await this.signIn.click();
}
}
export default new LoginPage();
Tests import the singleton and call domain methods.
| Command | Purpose |
|---|---|
npx wdio run wdio.conf.ts | Run with the named config. |
npx wdio run wdio.conf.ts --spec ./test/specs/login.spec.ts | One spec. |
npx wdio run wdio.conf.ts --suite smoke | Run a named suite (defined in config suites). |
npx wdio config | Run the interactive generator. |
npx wdio repl chrome | Interactive REPL against a live browser. |
Verify flags with npx wdio run --help against your installed version.
spec — terminal-friendly, default.junit — for CI integration (JUnit XML).allure — rich HTML reports.dot — minimal.mochawesome — HTML+JSON (when using Mocha).Multiple reporters can be configured simultaneously.
await — v8+ is async/await only. A missing await silently returns a Promise and the next command may run against a stale element. ESLint rules help.data-test / data-testid consistently.waitforTimeout too high to mask flake — the test passes once and hides the underlying race. Triage the race, then lower the timeout.wdio.web.conf.ts and wdio.mobile.conf.ts when web and mobile diverge.browser.waitUntil with element.waitFor* — element-specific waits are usually clearer; use waitUntil for arbitrary predicates only.When helping with WebdriverIO, ask:
maxInstances locally and matrix on CI?maxInstances is in-process only).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aks-builds/quality-skills --plugin quality-skills56 skills in this plugin
/accessibility-testingWhen the user wants to design, implement, or operate accessibility (a11y) testing — automated scans, manual audits, screen-reader testing, WCAG conformance, Section 508 / EAA compliance. Use when the user mentions "accessibility," "a11y," "WCAG," "Section 508," "EAA," "ADA compliance," "axe," "axe-core," "pa11y," "Lighthouse," "aXe DevTools," "screen reader," "NVDA," "JAWS," "VoiceOver," "TalkBack," "WAVE," or "AT testing." For visual diff see visual-regression. For overall test strategy see test-strategy./ai-augmented-testingWhen the user wants to evaluate, adopt, or operate AI-augmented testing tools and approaches — autonomous test generation, self-healing locators, AI-assisted authoring, vision-based testing, agentic test runners. Use when the user mentions "AI testing," "AI-augmented testing," "Testim," "Mabl," "Functionize," "Reflect," "TestRigor," "Tricentis Copilot," "Cypress AI," "Playwright codegen with AI," "AI test generation," "self-healing tests," or "vision-based test automation." For LLM-product evals see llm-eval-testing. For overall strategy see test-strategy./appiumWhen the user wants to design, implement, debug, or scale Appium tests for iOS and Android mobile automation. Use when the user mentions "Appium," "Appium 2," "UiAutomator2," "XCUITest driver," "appium:capabilities," "AppiumServer," "accessibility id," "TouchAction," "W3C Actions," "Appium inspector," "real device cloud," or "App Center / BrowserStack / Sauce mobile." For Android-native frameworks see espresso. For iOS-native see xcuitest. For React Native specifically see detox. For YAML-driven mobile flows see maestro. For desktop web automation see selenium / playwright / webdriverio.