# WebdriverIO v10 documentation: Get Started > 5 pages. Index of all sections: https://webdriver.io/llms.txt --- Source: https://webdriver.io/docs/gettingstarted.md # Getting Started Set up WebdriverIO in an existing or new project with one command, then run your first test. The configuration wizard asks what you want to test (web, mobile, desktop or VS Code extensions), which framework and reporters to use, and installs everything for you. info These are the docs for WebdriverIO **v10**. Still on v9? Use the [v9 documentation](https://v9.webdriver.io) or follow the [v10 migration guide](/docs/v10-migration.md). Using a coding agent? Point it at [`https://webdriver.io/llms.txt`](https://webdriver.io/llms.txt) or connect the docs MCP server at `https://webdriver.io/mcp`. See [WebdriverIO for Coding Agents](/docs/ai-agents.md). ## Initiate a WebdriverIO Setup[​](#initiate-a-webdriverio-setup "Direct link to Initiate a WebdriverIO Setup") The [WebdriverIO Starter Toolkit](https://www.npmjs.com/package/create-wdio) adds a complete WebdriverIO setup to an existing or new project. In the root directory of an existing project, run: * NPM * Yarn * pnpm * bun ``` npm init wdio@latest . ``` or if you want to create a new project: ``` npm init wdio@latest ./path/to/new/project ``` ``` yarn create wdio . ``` or if you want to create a new project: ``` yarn create wdio ./path/to/new/project ``` ``` pnpm create wdio@latest . ``` or if you want to create a new project: ``` pnpm create wdio@latest ./path/to/new/project ``` ``` bun create wdio@latest . ``` or if you want to create a new project: ``` bun create wdio@latest ./path/to/new/project ``` This single command downloads the WebdriverIO CLI tool and runs a configuration wizard that helps you to configure your test suite. The wizard will prompt a set questions that guides you through the setup. You can pass a `--yes` parameter to pick a default set up which will use Mocha with Chrome using the [Page Object](https://martinfowler.com/bliki/PageObject.html) pattern. * NPM * Yarn * pnpm * bun ``` npm init wdio@latest . -- --yes ``` ``` yarn create wdio . --yes ``` ``` pnpm create wdio@latest . --yes ``` ``` bun create wdio@latest . --yes ``` ### Answer the wizard with flags[​](#answer-the-wizard-with-flags "Direct link to Answer the wizard with flags") Every question in the wizard has a command line flag. A flag answers its question and the wizard asks only the rest. Together with `--yes`, the wizard uses the defaults for the rest and never prompts, which is what a coding agent or a CI job needs: ``` # Cucumber in JavaScript, with the spec and JUnit reporters npm init wdio@latest . -- --yes --framework cucumber --no-typescript --reporters spec,junit # Firefox and Edge instead of Chrome npm init wdio@latest . -- --yes --browsers firefox,edge # An Android app with Appium npm init wdio@latest . -- --yes --mobile-environment android # React component tests npm init wdio@latest . -- --yes --runner component --preset react # Write the config, but install the dependencies yourself npm init wdio@latest . -- --yes --no-npm-install ``` With Yarn, pnpm and bun, pass the flags without the `--` separator, e.g. `pnpm create wdio@latest . --yes --framework cucumber`. The most common flags: | Flag | Values | | ---------------------------------------- | --------------------------------------------------------------------------------------------------- | | `--runner` | `e2e` (default), `component`, `desktop`, `vscode`, `roku` | | `--framework` | `mocha` (default), `jasmine`, `cucumber`, `serenity-mocha`, `serenity-jasmine`, `serenity-cucumber` | | `--typescript` / `--no-typescript` | TypeScript is the default when the project has a `tsconfig.json` | | `--browsers` | Comma-separated list of `chrome` (default), `firefox`, `safari`, `edge` | | `--mobile-environment` | `android`, `ios` | | `--backend` | `local` (default), `saucelabs`, `browserstack`, `experitest`, `grid`, `other` | | `--preset` | `lit`, `vue`, `svelte`, `solid`, `stencil`, `react`, `preact`, `other`, with `--runner component` | | `--desktop-framework` | `electron`, `tauri`, `dioxus`, `macos`, with `--runner desktop` | | `--reporters`, `--services`, `--plugins` | Comma-separated short names, e.g. `--reporters spec,junit --services visual` | | `--agent-support` / `--no-agent-support` | Write the `AGENTS.md` section and the `wdio-session` skill (on by default) | | `--npm-install` / `--no-npm-install` | Install the dependencies (on by default) | `npm init wdio@latest -- --help` lists every flag, the values it accepts and the question it answers. Boolean flags take a `--no-` prefix. The same flags work with `npx wdio config`. The wizard checks each flag against your setup. An unknown value, a flag for a question it would not ask, or a value it would not offer for your setup stops it with exit code 2 before it writes any file: ``` Error: --preset does not apply to this setup. UI framework of your components (with --runner component). ``` ## Install CLI Manually[​](#install-cli-manually "Direct link to Install CLI Manually") You can also add the CLI package to your project manually via: ``` npm i --save-dev @wdio/cli npx wdio --version # prints e.g. `8.13.10` # run configuration wizard npx wdio config ``` ## Run Test[​](#run-test "Direct link to Run Test") You can start your test suite by using the `run` command and pointing to the WebdriverIO config that you just created: ``` npx wdio run ./wdio.conf.js ``` If you like to run specific test files you can add a `--spec` parameter: ``` npx wdio run ./wdio.conf.js --spec example.e2e.js ``` or define suites in your config file and run just the test files defined by in a suite: ``` npx wdio run ./wdio.conf.js --suite exampleSuiteName ``` ## Run in a script[​](#run-in-a-script "Direct link to Run in a script") If you would like to use WebdriverIO as an automation engine in [Standalone Mode](/docs/setuptypes.md#standalone-mode) within a Node.JS script you can also directly install WebdriverIO and use it as a package, e.g. to generate a screenshot of a website: getting-started/run-in-script.js ``` loading... ``` [View on GitHub]() **Note:** all WebdriverIO commands are asynchronous and need to be properly handled using [`async/await`](https://javascript.info/async-await). ## Record tests[​](#record-tests "Direct link to Record tests") WebdriverIO provides tools to help you get started by recording your test actions on screen and generate WebdriverIO test scripts automatically. See [Recorder tests with Chrome DevTools Recorder](/docs/record.md) for more information. ## System Requirements[​](#system-requirements "Direct link to System Requirements") You’ll need [Node.js](http://nodejs.org) installed. * Install at least v22.23.4, v24.22.1 or v26.12.1 (or a later release of these lines). These are the first releases with the [updated CA store](https://nodejs.org/en/blog/vulnerability/october-2026-security-releases) for the eMudhra intermediate CA compromise * Only releases that are or will become an LTS release are officially supported If Node is not currently installed on your system, we suggest utilizing a tool such as [NVM](https://github.com/creationix/nvm) or [Volta](https://volta.sh/) to assist in managing multiple active Node.js versions. NVM is a popular choice, while Volta is also a good alternative. ## Watch the Introduction[​](#watch-the-introduction "Direct link to Watch the Introduction") More videos are on the [official YouTube channel](https://youtube.com/@webdriverio). ## Next Steps[​](#next-steps "Direct link to Next Steps") * Pick your platform: [Web Browsers](/docs/platforms/web.md), [Mobile Apps](/docs/platforms/mobile.md), [Desktop Apps](/docs/platforms/desktop.md) or [Extensions & Editors](/docs/platforms/apps-and-extensions.md) * Learn how to [select elements](/docs/selectors.md) and write [assertions](/docs/assertion.md) * Configure the test runner in [`wdio.conf.ts`](/docs/configurationfile.md) * Get help on [Discord](https://discord.webdriver.io) --- Source: https://webdriver.io/docs/why-webdriverio.md # Why WebdriverIO? WebdriverIO is an open source test automation framework for Node.js. With one test runner and one API you can automate web browsers, native and hybrid mobile apps, desktop apps and editor extensions, and add visual, accessibility and component testing on top. It is run by its community under the umbrella of the [OpenJS Foundation](https://openjsf.org/). ## One framework for every platform[​](#one-framework-for-every-platform "Direct link to One framework for every platform") Most teams ship more than a website. WebdriverIO lets you test all of it with the same selectors, assertions, reporters and CI setup: | Platform | How WebdriverIO automates it | Start here | | ---------------------- | ----------------------------------------------------------------------------------------- | -------------------------------------------------------------- | | Web browsers | WebDriver and WebDriver BiDi in Chrome, Firefox, Safari and Edge | [Web Browsers](/docs/platforms/web.md) | | Web components | Component tests in a real browser for React, Vue, Svelte, Solid, Preact, Lit and Stencil | [Component Testing](/docs/component-testing.md) | | Mobile apps | Native, hybrid and mobile web on iOS and Android via Appium, including Flutter | [Mobile Apps](/docs/platforms/mobile.md) | | Desktop apps | Electron, Tauri and Dioxus apps on macOS, Windows and Linux, native macOS apps via Appium | [Desktop Apps](/docs/platforms/desktop.md) | | Editors and extensions | VS Code extensions and browser extensions | [Extensions & Editors](/docs/platforms/apps-and-extensions.md) | | Visual regressions | Screen, element and full-page comparisons for web and mobile | [Visual Testing](/docs/visual-testing.md) | The same test can even drive several of these at once, e.g. a mobile app and a web dashboard in one scenario, with [multi-remote](/docs/multiremote.md). ## Built on web standards[​](#built-on-web-standards "Direct link to Built on web standards") WebdriverIO automates browsers through [WebDriver](https://w3c.github.io/webdriver/) and [WebDriver BiDi](https://w3c.github.io/webdriver-bidi/), the W3C standards that every browser vendor implements and [tests](https://wpt.fyi/results/webdriver/tests). Your tests run against the same browser builds your users have, and interactions such as clicks and key presses are dispatched by the browser itself instead of being emulated with JavaScript. WebDriver BiDi adds network mocking, console and log events and more across browsers, not only Chromium. When you need browser-specific power, WebdriverIO gives you access to the Chrome DevTools Protocol through [Puppeteer](/docs/api/browser/getPuppeteer.md). Read more in [Automation Protocols](/docs/automationProtocols.md). ## Community driven and openly governed[​](#community-driven-and-openly-governed "Direct link to Community driven and openly governed") WebdriverIO is not a product of a testing vendor. The project: * is owned by the [OpenJS Foundation](https://openjsf.org/), a vendor-neutral non-profit, which legally binds it to serve the interests of all its users * follows a public [governance model](https://github.com/webdriverio/webdriverio/blob/main/GOVERNANCE.md): anyone can contribute, and committers and the Technical Steering Committee grow out of the community * has no paid tier and no feature gates; every feature is free and you can run your tests anywhere, locally or on any cloud provider * channels sponsorship back to the people who build it through a [contributor stipend program](/blog/2024/02/15/new-contributor-stipend-program) * offers free community support on [Discord](https://discord.webdriver.io) and [GitHub Discussions](https://github.com/webdriverio/webdriverio/discussions) ## Ready for coding agents[​](#ready-for-coding-agents "Direct link to Ready for coding agents") The docs, the tooling and the test artifacts are designed so that coding agents can work with WebdriverIO on their own: * **Agent-ready docs**: every page is available as Markdown, there is a curated [`llms.txt`](https://webdriver.io/llms.txt) and a docs MCP server at `https://webdriver.io/mcp`. * **WebdriverIO MCP**: the [`@wdio/mcp`](/docs/mcp.md) server lets an agent drive browsers and mobile apps to explore your UI and verify selectors. * **Traces**: [DevTools trace mode](/docs/devtools/wdio/trace-mode.md) writes a Markdown transcript, screenshots and accessibility snapshots for every failing test. See [WebdriverIO for Coding Agents](/docs/ai-agents.md) for the setup. ## Batteries included, easy to extend[​](#batteries-included-easy-to-extend "Direct link to Batteries included, easy to extend") * A [test runner](/docs/testrunner.md) with Mocha, Jasmine and Cucumber support, parallel execution, [sharding](/docs/sharding.md), [retries](/docs/retry.md) and a [watch mode](/docs/watcher.md) * [Auto-waiting](/docs/autowait.md) for every interaction and a built-in [assertion library](/docs/assertion.md) * [Network mocking](/docs/mocksandspies.md), [emulation](/docs/emulation.md) and [snapshot testing](/docs/snapshot.md) * A [debugging dashboard and trace viewer](/docs/devtools.md) * [70+ services and reporters](/docs/ecosystem.md) for clouds, frameworks and CI, plus simple APIs to write your own [commands](/docs/customcommands.md), [services](/docs/customservices.md) and [reporters](/docs/customreporter.md) ## When to choose something else[​](#when-to-choose-something-else "Direct link to When to choose something else") WebdriverIO is a good fit when you test more than one platform, want to run against real browsers and devices, or value an independent, community-owned tool. If you only ever test a single web app in a single browser and don't need mobile, desktop or cloud devices, a browser-only tool may feel lighter to start with. If you are unsure, [create a project](/docs/gettingstarted.md) with `npm init wdio@latest` and try it: the setup takes about a minute. ## Next steps[​](#next-steps "Direct link to Next steps") * [Getting Started](/docs/gettingstarted.md) - create a project and run your first test * [Setup Types](/docs/setuptypes.md) - test runner or standalone mode * [WebdriverIO for Coding Agents](/docs/ai-agents.md) - set up your agent --- Source: https://webdriver.io/docs/setuptypes.md # Setup Types WebdriverIO can be used for various purposes. It implements the WebDriver protocol API and can run a browser in an automated way. The framework is designed to work in any arbitrary environment and for any kind of task. It is independent from any 3rd party frameworks and only requires Node.js to run. ## Protocol Bindings[​](#protocol-bindings "Direct link to Protocol Bindings") For basic interactions with the WebDriver protocol WebdriverIO uses its own protocol bindings based on the [`webdriver`](https://www.npmjs.com/package/webdriver) NPM package: setup/webdriver.js ``` loading... ``` [View on GitHub]() All [protocol commands](/docs/api/webdriver.md) return the raw response from the automation driver. The package is very lightweight and there is **no** smart logic like auto-waits to simplify the interaction with the protocol usage. The protocol commands applied to the instance depend on the initial session response of the driver. For example if the response indicates that a mobile session was started, the package applies the Appium commands to the instance prototype. For more information on the `webdriver` package interface, see [Modules API](/docs/api/modules.md). [WebdriverIO DevTools](/docs/devtools.md) is not an automation protocol. It is the debugging UI for watching a run live and replaying traces afterwards. ## Standalone Mode[​](#standalone-mode "Direct link to Standalone Mode") To simplify the interaction with the WebDriver protocol the `webdriverio` package implements a variety of commands on top of the protocol (e.g. the [`dragAndDrop`](/docs/api/element/dragAndDrop.md) command) and core concepts such as [smart selectors](/docs/selectors.md) or [auto-waits](/docs/autowait.md). The example from above can be simplified like this: setup/standalone.js ``` loading... ``` [View on GitHub]() Using WebdriverIO in standalone mode still gives you access to all protocol commands but provides a super set of additional commands that provide a higher level interaction with the browser. It allows you to integrate this automation tool in your own (test) project to create a new automation library. Popular examples include [Oxygen](https://github.com/oxygenhq/oxygen) or [CodeceptJS](http://codecept.io). You can also write plain Node scripts to scrape the web for content (or anything else that requires a running browser). If no specific options are set WebdriverIO will always attempt to download and setup the browser driver that matches `browserName` property in your capabilities. In case of Chrome and Firefox it might also install them depending on whether it can find the corresponding browser on the machine. For more information on the `webdriverio` package interfaces, see [Modules API](/docs/api/modules.md). ## The WDIO Testrunner[​](#the-wdio-testrunner "Direct link to The WDIO Testrunner") The main purpose of WebdriverIO, though, is end-to-end testing on a big scale. We therefore implemented a test runner that helps you to build a reliable test suite that is easy to read and maintain. The test runner takes care of many problems that are common when working with plain automation libraries. For one, it organizes your test runs and splits up test specs so your tests can be executed with maximum concurrency. It also handles session management and provides lots of features to help you to debug problems and find errors in your tests. Here is the same example from above, written as a test spec and executed by WDIO: setup/testrunner.js ``` loading... ``` [View on GitHub]() The test runner is an abstraction of popular test frameworks like Mocha, Jasmine, or Cucumber. To run your tests using the WDIO test runner, check out the [Getting Started](/docs/gettingstarted.md) section for more information. For more information on the `@wdio/cli` testrunner package interface, see [Modules API](/docs/api/modules.md). --- Source: https://webdriver.io/docs/boilerplates.md Over time, our community has developed several projects that you can use as inspiration to set up your own test suite. # v9 Boilerplate Projects ## [webdriverio/cucumber-boilerplate](https://github.com/webdriverio/cucumber-boilerplate)[​](#webdriveriocucumber-boilerplate "Direct link to webdriveriocucumber-boilerplate") Our very own boilerplate for Cucumber test suites. We created over 150 predefined step definitions for you, so you can start writing feature files in your project right away. * Framework: * Cucumber * WebdriverIO * Features: * Over 150 predefined steps that cover almost everything you need * Integrates WebdriverIO's multi-remote functionality * Own demo app ## [webdriverio/jasmine-boilerplate](https://github.com/webdriverio/jasmine-boilerplate)[​](#webdriveriojasmine-boilerplate "Direct link to webdriveriojasmine-boilerplate") Boilerplate project to run WebdriverIO tests with Jasmine using Babel features and the page objects pattern. * Frameworks * WebdriverIO * Jasmine * Features * Page Object Pattern * Sauce Labs integration ## [webdriverio/electron-boilerplate](https://github.com/webdriverio/electron-boilerplate)[​](#webdriverioelectron-boilerplate "Direct link to webdriverioelectron-boilerplate") Boilerplate project to run WebdriverIO tests on a minimal Electron application. * Frameworks * WebdriverIO * Mocha * Features * Electron API mocking ## [syamphaneendra/webdriverio9-boilerplate](https://github.com/syamphaneendra/webdriverio9-boilerplate)[​](#syamphaneendrawebdriverio9-boilerplate "Direct link to syamphaneendrawebdriverio9-boilerplate") This boilerplate project has WebdriverIO 9 mobile tests with Cucumber, TypeScript, and Appium for Android and iOS platforms, following the Page Object Model pattern. Features comprehensive logging, reporting, mobile gestures, app-to-web navigation, and CI/CD integration. * Frameworks: * WebdriverIO v9 * Cucumber v9 * Appium v2.5 * TypeScript v5 * Features: * Multi-platform support * Android (UiAutomator2) * iOS (XCUITest) * Mobile Gestures * Scroll * Swipe * Long press * Hide keyboard * App-to-Web Navigation * Context switching * WebView support * Browser automation (Chrome/Safari) * Fresh App State * Automatic app reset between scenarios * Configurable reset behavior (noReset, fullReset) * Device Configuration * Centralized device management * Easy platform switching * Example of Directory Structure for JavaScript / TypeScript. Below is for JS version, TS version has smae structure as well. ## [amiya-pattnaik/wdio-testgen-from-gherkin-js](https://github.com/amiya-pattnaik/wdio-testgen-from-gherkin-js)[​](#amiya-pattnaikwdio-testgen-from-gherkin-js "Direct link to amiya-pattnaikwdio-testgen-from-gherkin-js") ## [amiya-pattnaik/wdio-testgen-from-gherkin-ts](https://github.com/amiya-pattnaik/wdio-testgen-from-gherkin-ts)[​](#amiya-pattnaikwdio-testgen-from-gherkin-ts "Direct link to amiya-pattnaikwdio-testgen-from-gherkin-ts") Automatically generate WebdriverIO Page Object classes and Mocha test specs from Gherkin .feature files — reducing manual effort, improving consistency, and speeding up QA automation. This project not only produces codes compatible with webdriver.io but also enhances all functionalities of webdriver.io. We have created two flavours one for JavaScript uses and other for TypeScript users. But both project works in the smae way. ***How It Works?*** * The process follows a two-step automation: * Step 1: Gherkin to stepMap (Generate stepMap.json Files) * Generate stepMap.json Files: * Parses .feature files written in Gherkin syntax. * Extracts scenarios and steps. * Produces a structured .stepMap.json file containing: * action to perform (e.g., click, setText, assertVisible) * selectorName for logical mapping * selector for the DOM element * note for values or assertion * Step 2: stepMap to Code (Generate WebdriverIO Code). Uses stepMap.json to generate: * Generate a base page.js class with shared methods and browser.url() setup. * Generate WebdriverIO-compatible Page Object Model (POM) classes per feature inside test/pageobjects/. * Generate Mocha-based test specs. * Example of Directory Structure for JavaScript / TypeScript. Below is for JS version, TS version has smae structure as well. ``` project-root/ ├── features/ # Gherkin .feature files (user input / source file) ├── stepMaps/ # Auto-generated .stepMap.json files ├── test/ │ ├── pageobjects/ # Auto-generated WebdriverIO tests Page Object Model classes │ └── specs/ # Auto-generated Mocha test specs ├── src/ │ ├── cli.js # Main CLI logic │ ├── generateStepsMap.js # Feature-to-stepMap generator │ ├── generateTestsFromMap.js # stepMap-to-page/spec generator │ ├── utils.js # Helper methods │ └── config.js # Paths, fallback selectors, aliases │ └── __tests__/ # Unit tests (Vitest) ├── testgen.js # CLI entry point │── wdio.config.js # WebdriverIO configuration ├── package.json # Scripts and dependencies ├── selector-aliases.json # Optional user-defined selector overrides the primary selector ``` *** # v8 Boilerplate Projects ## [amiya-pattnaik/webdriverIO-with-cucumberBDD](https://github.com/amiya-pattnaik/webdriverIO-with-cucumberBDD)[​](#amiya-pattnaikwebdriverio-with-cucumberbdd "Direct link to amiya-pattnaikwebdriverio-with-cucumberbdd") * Framework: WDIO-V8 with Cucumber (V8x). * Features: * Page Objects Model uses with ES6 /ES7 style class base approach and TypeScript support * Examples of multi selector option to query element with more than one selector at a time * Examples of multi browser and headless browser execution using - Chrome and Firefox * Cloud testing Integration with BrowserStack, Sauce Labs, TestMu AI (Formerly LambdaTest) * Examples of read/write data from MS-Excel for easy test data management from external data sources with examples * Database support to any RDBMS (Oracle, MySql, TeraData, Vertica etc.), executing any queries / fetching result set etc. with examples for E2E testing * Multiple reporting (Spec, Xunit/Junit, Allure, JSON) and Hosting Allure and Xunit/Junit reporting on WebServer. * Examples with demo app and . * BrowserStack, Sauce Labs, TestMu AI (Formerly LambdaTest) and Appium specific `.config` file (for playback on mobile device). For one click Appium setup on local machine for iOS and Android refer to [appium-setup-made-easy-OSX](https://github.com/amiya-pattnaik/appium-setup-made-easy-OSX). ## [amiya-pattnaik/webdriverIO-with-mochaBDD](https://github.com/amiya-pattnaik/webdriverIO-with-mochaBDD)[​](#amiya-pattnaikwebdriverio-with-mochabdd "Direct link to amiya-pattnaikwebdriverio-with-mochabdd") * Framework: WDIO-V8 with Mocha (V10x). * Features: * Page Objects Model uses with ES6 /ES7 style class base approach and TypeScript support * Examples with demo app and * Examples of multi browser and headless browser execution using - Chrome and Firefox * Cloud testing Integration with BrowserStack, Sauce Labs, TestMu AI (Formerly LambdaTest) * Multiple reporting (Spec, Xunit/Junit, Allure, JSON) and Hosting Allure and Xunit/Junit reporting on WebServer. * Examples of read/write data from MS-Excel for easy test data management from external data sources with examples * Examples of DB connect to any RDBMS (Oracle, MySql, TeraData, Vertica etc.), any query execution / fetching result set etc. with examples for E2E testing * BrowserStack, Sauce Labs, TestMu AI (Formerly LambdaTest) and Appium specific `.config` file (for playback on mobile device). For one click Appium setup on local machine for iOS and Android refer to [appium-setup-made-easy-OSX](https://github.com/amiya-pattnaik/appium-setup-made-easy-OSX). ## [amiya-pattnaik/webdriverIO-with-jasmineBDD](https://github.com/amiya-pattnaik/webdriverIO-with-jasmineBDD)[​](#amiya-pattnaikwebdriverio-with-jasminebdd "Direct link to amiya-pattnaikwebdriverio-with-jasminebdd") * Framework: WDIO-V8 with Jasmine (V4x). * Features: * Page Objects Model uses with ES6 /ES7 style class base approach and TypeScript support * Examples with demo app and * Examples of multi browser and headless browser execution using - Chrome and Firefox * Cloud testing Integration with BrowserStack, Sauce Labs, TestMu AI (Formerly LambdaTest) * Multiple reporting (Spec, Xunit/Junit, Allure, JSON) and Hosting Allure and Xunit/Junit reporting on WebServer. * Examples of read/write data from MS-Excel for easy test data management from external data sources with examples * Examples of DB connect to any RDBMS (Oracle, MySql, TeraData, Vertica etc.), any query execution / fetching result set etc. with examples for E2E testing * BrowserStack, Sauce Labs, TestMu AI (Formerly LambdaTest) and Appium specific `.config` file ( for playback on mobile device). For one click Appium setup on local machine for iOS and Android refer to [appium-setup-made-easy-OSX](https://github.com/amiya-pattnaik/appium-setup-made-easy-OSX). ## [syamphaneendra/webdriverio-web-mobile-boilerplate](https://github.com/syamphaneendra/webdriverio-web-mobile-boilerplate)[​](#syamphaneendrawebdriverio-web-mobile-boilerplate "Direct link to syamphaneendrawebdriverio-web-mobile-boilerplate") This boilerplate project has WebdriverIO 8 tests with cucumber and typescript, followed by the page objects pattern. * Frameworks: * WebdriverIO v8 * Cucumber v8 * Features: * Typescript v5 * Page Object Pattern * Prettier * Multi browser support * Chrome * Firefox * Edge * Safari * Standalone * Crossbrowser parallel execution * Appium * Cloud testing Integration with BrowserStack & Sauce Labs * Docker service * Share data service * Separate config files for each service * Testdata management & read by user type * Reporting * Dot * Spec * Multiple cucumber html report with failure screenshots * Gitlab pipelines for Gitlab repository * Github actions for Github repository * Docker compose for setting up the docker hub * Accessibility testing using AXE * Visual testing using Applitools * Log mechansim ## [klassijs/klassi-js (cucumber-template)](https://github.com/klassijs/klassi-example-test-suite.git)[​](#klassijsklassi-js-cucumber-template "Direct link to klassijsklassi-js-cucumber-template") * Frameworks * WebdriverIO (v8) * Cucumber (v8) * Features * Contain sample test scenario in cucumber * Integrated cucumber html reports with Embedded videos on failures * Integrated Lambdatest and CircleCI services * Integrated Visual, Accessibility and API testing * Integrated Email functionality * Integrated s3 bucket for test reports storage and retrieval ## [serenity-js/serenity-js-mocha-webdriverio-template/](https://github.com/serenity-js/serenity-js-mocha-webdriverio-template/)[​](#serenity-jsserenity-js-mocha-webdriverio-template "Direct link to serenity-jsserenity-js-mocha-webdriverio-template") [Serenity/JS](https://serenity-js.org?pk_campaign=wdio8\&pk_source=webdriver.io) template project to help you get started with acceptance testing your web applications using the latest WebdriverIO, Mocha, and Serenity/JS. * Frameworks * WebdriverIO (v8) * Mocha (v10) * Serenity/JS (v3) * Serenity BDD reporting * Features * [Screenplay Pattern](https://serenity-js.org/handbook/design/screenplay-pattern/?pk_campaign=wdio8\&pk_source=webdriver.io) * Automatic screenshots on test failure, embedded in reports * Continuous Integration (CI) setup using [GitHub Actions](https://github.com/serenity-js/serenity-js-mocha-webdriverio-template/blob/main/.github/workflows/main.yml) * [Demo Serenity BDD reports](https://serenity-js.github.io/serenity-js-mocha-webdriverio-template/) published to GitHub Pages * TypeScript * ESLint ## [serenity-js/serenity-js-cucumber-webdriverio-template/](https://github.com/serenity-js/serenity-js-cucumber-webdriverio-template/)[​](#serenity-jsserenity-js-cucumber-webdriverio-template "Direct link to serenity-jsserenity-js-cucumber-webdriverio-template") [Serenity/JS](https://serenity-js.org?pk_campaign=wdio8\&pk_source=webdriver.io) template project to help you get started with acceptance testing your web applications using the latest WebdriverIO, Cucumber, and Serenity/JS. * Frameworks * WebdriverIO (v8) * Cucumber (v9) * Serenity/JS (v3) * Serenity BDD reporting * Features * [Screenplay Pattern](https://serenity-js.org/handbook/design/screenplay-pattern/?pk_campaign=wdio8\&pk_source=webdriver.io) * Automatic screenshots on test failure, embedded in reports * Continuous Integration (CI) setup using [GitHub Actions](https://github.com/serenity-js/serenity-js-cucumber-webdriverio-template/blob/main/.github/workflows/main.yml) * [Demo Serenity BDD reports](https://serenity-js.github.io/serenity-js-mocha-webdriverio-template/) published to GitHub Pages * TypeScript * ESLint ## [Muralijc/wdio-headspin-boilerplate](https://github.com/Muralijc/Wdio-Headspin-boilerplate/)[​](#muralijcwdio-headspin-boilerplate "Direct link to muralijcwdio-headspin-boilerplate") Boilerplate project to run WebdriverIO tests in Headspin Cloud () using Cucumber features, and the page objects pattern. * Frameworks * WebdriverIO (v8) * Cucumber (v8) * Features * Cloud integration with [Headspin](https://www.headspin.io/) * Supports Page Object Model * Contains sample Scenarios written in Declarative style of BDD * Integrated cucumber html reports # v7 Boilerplate Projects *** ## [webdriverio/appium-boilerplate](https://github.com/webdriverio/appium-boilerplate/)[​](#webdriverioappium-boilerplate "Direct link to webdriverioappium-boilerplate") Boilerplate project to run Appium tests with WebdriverIO for: * iOS/Android Native Apps * iOS/Android Hybrid Apps * Android Chrome and iOS Safari browser This boilerplate includes the following: * Framework: Mocha * Features: * Configs for: * iOS and Android app * iOS and Android browsers * Helpers for: * WebView * Gestures * Native alerts * Pickers * Tests examples for: * WebView * Login * Forms * Swipe * Browsers ## [serhatbolsu/webdriverio-mocha-uiautomation-boiler](https://github.com/serhatbolsu/webdriverio-mocha-uiautomation-boiler)[​](#serhatbolsuwebdriverio-mocha-uiautomation-boiler "Direct link to serhatbolsuwebdriverio-mocha-uiautomation-boiler") ATDD WEB tests with Mocha, WebdriverIO v6 with PageObject * Frameworks * WebdriverIO (v7) * Mocha * Features * [Page Object](/docs/pageobjects.md) Model * Sauce Labs integration with [Sauce Service](https://github.com/webdriverio/webdriverio/blob/main/packages/wdio-sauce-service/README.md) * Allure Report * Automatic screenshots capture for failing tests * CircleCI example * ESLint ## [WarleyGabriel/demo-webdriverio-mocha](https://github.com/WarleyGabriel/demo-webdriverio-mocha)[​](#warleygabrieldemo-webdriverio-mocha "Direct link to warleygabrieldemo-webdriverio-mocha") Boilerplate project to run E2E tests with Mocha. * Frameworks: * WebdriverIO (v7) * Mocha * Features: * TypeScript * [Expect-webdriverio](https://github.com/webdriverio/expect-webdriverio) * [Visual regression tests](https://github.com/wswebcreation/wdio-image-comparison-service) * Page Object Pattern * [Commit lint](https://github.com/conventional-changelog/commitlint) and [Commitizen](https://github.com/commitizen/cz-cli#making-your-repo-commitizen-friendly) * ESlint * Prettier * Husky * Github Actions example * Allure report (screenshots on failure) ## [17thSep/WebdriverIO\_Master](https://github.com/17thSep/WebdriverIO_Master)[​](#17thsepwebdriverio_master "Direct link to 17thsepwebdriverio_master") Boilerplate project to run **WebdriverIO v7** tests for the following: [WDIO 7 scripts with TypeScript in Cucumber Framework](https://github.com/17thSep/WebdriverIO_Master/tree/master/TypeScript/Cucumber) [WDIO 7 scripts with TypeScript in Mocha Framework](https://github.com/17thSep/WebdriverIO_Master/tree/master/TypeScript/Mocha) [Run WDIO 7 script in Docker](https://github.com/17thSep/WebdriverIO_Master/tree/master/TypeScript/Docker) [Network logs](https://github.com/17thSep/MonitorNetworkLogs/) Boiler plate project for: * Capture Network Logs * Capture all GET/POST calls or a specific REST API * Assert Request parameters * Assert Response parameters * Store all the response in a separate file ## [Arjun-Ar91/Wdio7-appium-cucumber](https://github.com/Arjun-Ar91/Wdio7-appium-cucumber.git)[​](#arjun-ar91wdio7-appium-cucumber "Direct link to arjun-ar91wdio7-appium-cucumber") Boilerplate project to run appium tests for native and mobile browser using cucumber v7 and wdio v7 with page object pattern. * Frameworks * WebdriverIO v7 * Cucumber v7 * Appium * Features * Native Android and iOS apps * Android Chrome browser * iOS Safari browser * Page Object Model * Contains sample test scenarios in cucumber * Integrated with multiple cucumber html reports ## [praveendvd/webdriverIODockerBoilerplate/](https://github.com/praveendvd/webdriverIODockerBoilerplate)[​](#praveendvdwebdriveriodockerboilerplate "Direct link to praveendvdwebdriveriodockerboilerplate") This a template project to help you show how you can run webdriverio test from Web applications using the latest WebdriverIO, and Cucumber framework. This project intends to act as a baseline image that you can use to understand how to run WebdriverIO tests in docker This project includes: * DockerFile * cucumber Project Read more at: [Medium Blog](https://praveendavidmathew.medium.com/running-webdriverio-in-wsl2-windows-91d3a0dc7746) ## [praveendvd/WebdriverIO\_electronAppAutomation\_boilerplate/](https://github.com/praveendvd/WebdriverIO_electronAppAutomation_boilerplate)[​](#praveendvdwebdriverio_electronappautomation_boilerplate "Direct link to praveendvdwebdriverio_electronappautomation_boilerplate") This a template project to help you show how you can run electronJS tests using WebdriverIO. This project intends to act as a baseline image that you can use to understand how to run WebdriverIO electronJS tests. This project include: * Sample electronjs app * Sample cucumber test scripts Read more at: [Medium Blog](https://praveendavidmathew.medium.com/first-step-into-automation-of-electronjs-applications-ef89b7423ddd) ## [praveendvd/webdriverIO\_winappdriver\_boilerplate/](https://github.com/praveendvd/webdriverIO_winappdriver_boilerplate)[​](#praveendvdwebdriverio_winappdriver_boilerplate "Direct link to praveendvdwebdriverio_winappdriver_boilerplate") This a template project to help you show how you can automate windows application using winappdriver and WebdriverIO . This project intends to act as a baseline image that you can use to understand how to run windappdriver and WebdriverIO tests. Read more at: [Medium Blog](https://praveendavidmathew.medium.com/winappdriver-first-step-into-windows-app-test-automation-using-webdriverio-and-winappdriver-46320d89570b) ## [praveendvd/appium-chromedriver-multiremote-wdio-boilerplate/](https://github.com/praveendvd/appium-chromedriver-multiremote-wdio-boilerplate)[​](#praveendvdappium-chromedriver-multiremote-wdio-boilerplate "Direct link to praveendvdappium-chromedriver-multiremote-wdio-boilerplate") This a template project to help you show how you can run webdriverio multi-remote capability with latest WebdriverIO, and Jasmine framework. This project intends to act as a baseline image that you can use to understand how to run WebdriverIO tests in docker This project uses: * chromedriver * jasmine * appium ## [webdriverio-roku-appium-boilerplate](https://github.com/AntonKostenko/webdriverIO-roku-appium)[​](#webdriverio-roku-appium-boilerplate "Direct link to webdriverio-roku-appium-boilerplate") Template project to run appium tests on real Roku devices using mocha with page object pattern. * Frameworks * WebdriverIO Async v7 * Appium 3.0 * Mocha v7 * Allure Reporting * Features * Page Object Model * Typescript * Screenshot on failure * Example tests using a sample Roku channel ## [krishnapollu/wdio-cucumber-poc](https://github.com/krishnapollu/wdio-cucumber-poc)[​](#krishnapolluwdio-cucumber-poc "Direct link to krishnapolluwdio-cucumber-poc") PoC project for E2E multi-remote Cucumber tests as well as Data driven Mocha tests * Framework: * Cucumber (v8) * WebdriverIO (v8) * Mocha (v8) * Features: * Cucumber based E2E Tests * Mocha based Data Driven Tests * Web only Tests - in Local as well as cloud platforms * Mobile Only tests - local as well as remote cloud emulators (or devices) * Web + Mobile Tests - multi-remote - local as well as cloud platforms * Multiple Reports integrated including Allure * Test Data ( JSON / XLSX ) handled globally so as to write the data (created on the fly) to a file post test execution * Github workflow to run the test and upload the allure report ## [Rondleysg/wdio-multiremote-appium-chromedriver-boilerplate](https://github.com/Rondleysg/wdio-multiremote-appium-chromedriver-boilerplate)[​](#rondleysgwdio-multiremote-appium-chromedriver-boilerplate "Direct link to rondleysgwdio-multiremote-appium-chromedriver-boilerplate") This is a boilerplate project to help show how to run webdriverio multi-remote using appium and chromedriver service with the latest WebdriverIO. * Frameworks * WebdriverIO (v9) * Appium (v2) * Mocha * Features * [Page Object](/docs/pageobjects.md) Model * Typescript * Web + Mobile Tests - multi-remote * Native Android and iOS apps * Appium * Chromedriver * ESLint * Tests examples for Login in and [WebdriverIO native demo app](https://github.com/webdriverio/native-demo-app) --- Source: https://webdriver.io/docs/automationProtocols.md # Automation Protocols With WebdriverIO, you can choose between multiple automation technologies when running your E2E tests locally or in the cloud. By default, WebdriverIO will attempt to start a local automation session using the [WebDriver Bidi](https://w3c.github.io/webdriver-bidi/) protocol. ## WebDriver Bidi Protocol[​](#webdriver-bidi-protocol "Direct link to WebDriver Bidi Protocol") The [WebDriver Bidi](https://w3c.github.io/webdriver-bidi/) is an automation protocol to automate browsers using bi-directional communication. It's the successor of the [WebDriver](https://w3c.github.io/webdriver/) protocol and enables a lot more introspection capabilities for various testing use cases. This protocol is currently under development and new primitives might be added in the future. All browser vendors have committed to implementing this web standard and a lot of [primitives](https://wpt.fyi/results/webdriver/tests/bidi?label=experimental\&label=master\&aligned) have already been landed in browsers. ## WebDriver Protocol[​](#webdriver-protocol "Direct link to WebDriver Protocol") > [WebDriver](https://w3c.github.io/webdriver/) is a remote control interface that enables introspection and control of user agents. It provides a platform- and language-neutral wire protocol as a way for out-of-process programs to remotely instruct the behavior of web browsers. The WebDriver protocol was designed to automate a browser from the user perspective, meaning that everything a user is able to do, you can do with the browser. It provides a set of commands that abstract away common interactions with an application (e.g., navigating, clicking, or reading the state of an element). Since it is a web standard, it is well supported across all major browser vendors and also is being used as an underlying protocol for mobile automation using [Appium](http://appium.io). To use this automation protocol, you need a proxy server that translates all commands and executes them in the target environment (i.e. the browser or the mobile app). For browser automation, the proxy server is usually the browser driver. There are drivers available for all browsers: * Chrome – [ChromeDriver](http://chromedriver.chromium.org/downloads) * Firefox – [Geckodriver](https://github.com/mozilla/geckodriver/releases) * Microsoft Edge – [Edge Driver](https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/) * Internet Explorer – [InternetExplorerDriver](https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver) * Safari – [SafariDriver](https://developer.apple.com/documentation/webkit/testing_with_webdriver_in_safari) For any kind of mobile automation, you’ll need to install and setup [Appium](http://appium.io). It will allow you to automate mobile (iOS/Android) or even desktop (macOS/Windows) applications using the same WebdriverIO setup. There are also plenty of services that allow you to run your automation test in the cloud at high scale. Instead of having to setup all these drivers locally, you can just talk to these services (e.g. [Sauce Labs](https://saucelabs.com)) in the cloud and inspect the results on their platform. The communication between the test script and the automation environment looks like this: