WebDriverIO
  • 12 Oct 2023
  • 1 Minute to read
  • Dark
    Light

WebDriverIO

  • Dark
    Light

Article summary

Overview

WebdriverIO, a well-known JavaScript test automation framework compatible with Node.js, enables automation for a broad spectrum of applications. It seamlessly automates modern web frameworks like React, Angular, Polymer, and Vue.js, in addition to native mobile apps for both Android and iOS platforms.

WebdriverIO features its interpretation of the Webdriver specification, facilitating the execution of tests across various browsers.

Prerequisites

  1. Node.js
    Make sure you have Node.js installed on your machine. It is recommended to use version 16 or above.

  2. NPM
    Ensure that NPM (Node Package Manager) is installed on your machine.

  3. Project Setup
    Clone or download the project to your local system.

  4. Install Dependencies
    Open the terminal and navigate to the project's downloaded path. Install the project dependencies by running the following command:

    npm install
    

Configuration

  1. Update Email
    In the "wdio.android.conf.js" file, locate the line containing "pCloudy_Username" and enter your email address as the value.

  2. Update API Key
    Similarly, find the line with "pCloudy_ApiKey" and replace "Enter your API Key" with your actual API key.

Execution

To run the script, use the following command in the terminal:

npm run wdio

The complete sample and documentation are available in the pCloudy GitHub Repository : Github


Was this article helpful?

What's Next