- 12 Oct 2023
- 1 Minute to read
- Print
- DarkLight
WebDriverIO
- Updated on 12 Oct 2023
- 1 Minute to read
- Print
- DarkLight
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
Node.js
Make sure you have Node.js installed on your machine. It is recommended to use version 16 or above.NPM
Ensure that NPM (Node Package Manager) is installed on your machine.Project Setup
Clone or download the project to your local system.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
Update Email
In the "wdio.android.conf.js" file, locate the line containing "pCloudy_Username" and enter your email address as the value.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