Last updated on : 21 Jan 2025
WebDriverIO
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:
Terminalnpm install
Configuration
-
Update Email In the
wdio.android.conf.jsfile, locate the line containingPcloudy_Usernameand enter your email address as the value. -
Update API Key Similarly, find the line with
Pcloudy_ApiKeyand 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: Here
Did this page help you?