skillfed

webdriverio-skill

This skill enables you to generate WebdriverIO test scripts in JavaScript or TypeScript, streamlining browser automation and test creation. Leverage WebdriverIO's powerful API to build reliable end-to-end tests with minimal setup, backed by LambdaTest's testing expertise.

webdriverio-skill enables you to generate WebdriverIO test scripts in both JavaScript and TypeScript. You can use webdriverio-skill to create test code that leverages WebdriverIO's powerful API for browser automation. The skill helps you build reliable end-to-end tests with minimal setup by providing code generation capabilities and best practices for structuring your test files, handling assertions, and managing test execution flows.

AI-generated summary based on this skill's SKILL.md

339 68 MIT updated by LambdaTest

Install

LambdaTest/agent-skills/webdriverio-skill · repository language: Python

CLI (skillfed)coming soon
git clone https://github.com/LambdaTest/agent-skills
cp -r agent-skills/webdriverio-skill ~/.claude/skills/webdriverio-skill

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I write WebdriverIO tests in JavaScript or TypeScript?

webdriverio-skill enables you to generate WebdriverIO test scripts in both JavaScript and TypeScript. You can use webdriverio-skill to create test code that leverages WebdriverIO's powerful API for browser automation. The skill helps you build reliable end-to-end tests with minimal setup by providing code generation capabilities and best practices for structuring your test files, handling assertions, and managing test execution flows.

What frameworks can webdriverio-skill help me set up with WebdriverIO?

webdriverio-skill supports setting up WebdriverIO with multiple testing frameworks including Mocha, Jasmine, and Cucumber. Each framework has different strengths: Mocha offers flexibility and simplicity, Jasmine provides built-in assertion libraries, and Cucumber enables behavior-driven development with Gherkin syntax. webdriverio-skill can guide you through the configuration and integration process for whichever framework best fits your testing needs.

How can webdriverio-skill help me configure WebdriverIO for local or cloud execution?

webdriverio-skill streamlines WebdriverIO configuration for both local and cloud-based test execution. For local testing, it helps you set up browser drivers and local test environments. For cloud execution, webdriverio-skill provides guidance on integrating with services like LambdaTest, enabling you to run tests across multiple browsers and devices without maintaining local infrastructure. The skill assists with configuring connection parameters, capabilities, and execution settings for your chosen environment.

What does webdriverio-skill teach about selectors, page objects, and wait strategies?

webdriverio-skill covers essential WebdriverIO concepts including element selectors (CSS, XPath, data-testid), page object models for organizing test code, and wait strategies for handling dynamic content. The skill explains how to construct reliable selectors, structure page objects to reduce code duplication, and implement proper wait conditions to ensure elements are ready before interaction. These practices help you build maintainable, stable automation tests that handle real-world timing challenges.

Can webdriverio-skill help integrate WebdriverIO with CI/CD pipelines and LambdaTest?

Yes, webdriverio-skill supports integration of WebdriverIO with CI/CD pipelines and cloud testing platforms like LambdaTest. The skill provides guidance on configuring WebdriverIO to run in continuous integration environments (such as GitHub Actions), managing test parallelization, and connecting to LambdaTest's cloud infrastructure. This enables you to automate test execution as part of your deployment workflow and leverage cloud resources for faster, more comprehensive test coverage.

How does webdriverio-skill help with browser automation and test debugging?

webdriverio-skill enables you to leverage WebdriverIO's powerful API for comprehensive browser automation, including taking screenshots, capturing logs, and implementing debugging strategies. The skill helps you generate test code that includes debugging hooks, screenshot capture on failures, and proper error handling. By streamlining test creation with minimal setup required, webdriverio-skill lets you focus on building robust automation while maintaining visibility into test execution and troubleshooting issues effectively.

SKILL.md

rendered from the published skill — quoted content, verbatim

WebdriverIO Automation Skill

Step 1 — Execution Target

Default local. If mentions "cloud", "TestMu", "LambdaTest" → cloud via WDIO LambdaTest service.

Step 2 — Framework

Signal Runner
Default Mocha
"Jasmine" Jasmine
"Cucumber", "BDD" Cucumber

Core Patterns

Selectors
// ✅ Preferred
await $('[data-testid="submit"]').click();
await $('aria/Submit').click();
await $('button=Submit').click(); // text-based

// Chaining
await $('form').$('input[name="email"]').setValue('test@test.com');

// Multiple elements
const items = await $$('.list-item');
Basic Test (Mocha)

```javascript describe('Login', () => { it('should login successfully', async () => { await

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 4 files
webdriverio-skill/SKILL.md
webdriverio-skill/reference/advanced-patterns.md
webdriverio-skill/reference/cloud-integration.md
webdriverio-skill/reference/playbook.md

Related skills

Tags

browser-automation e2e-test-framework page-object-model cloud-grid-testing test-runner-config selector-strategies wait-conditions parallel-execution