# WebdriverIO

Last updated on : 09 Jan 2026

Overview

WebdriverIO is a JavaScript based end to end automation framework that works with Selenium and the W3C WebDriver standard. It provides a clean, expressive API with support for BDD and TDD styles, enabling scalable cross browser and mobile testing across web and Appium driven environments.

## Prerequisites for WebdriverIO

### 1. Node.js and Package Manager (npm)

Install Node.js:

Install Node.js from their official website or install via command line:

```java
install node
```

Verify Node Version:

```java
node -v
```

Update npm to Latest Version:

If node isn't of the latest version, you can update it using the below command:

```java
npm install npm@latest -g
```

### 2. Install Selenium Dependencies

```java
npm install selenium-webdriver
```

### 3. Install WebdriverIO

Ensure that you have WebdriverIO installed in your system, you can install it using the below command through npm:

```java
npm install webdriverio
```

## Setup

### Step 1: Clone the Project

Clone the project repository to your local machine.

### Step 2: Initialize Project

After cloning from git, initialize your project by hitting the command:

```java
npm init
```

This will create a package.json file in an interactive way, which will contain all our required project configurations. It will be required to execute our test script.

### Step 3: Configure Test Settings

Open parallel.conf.js file or single.conf.js file and enter below details:

- Enter email & apiKey
- Enter clientName
- Enter os, osVersion and browserVersion

## Execution

Open Terminal and Run Below Commands:

### To run single file:

```java
npm run single
```

### To run parallel file:

```java
npm run parallel
```

## Additional Information

For more details, please refer the link.
