WebdriverIO - Getting Started with NodeJS



WebdriverIO coding is done using JavaScript. For this, NodeJS has to be installed since it is a JavaScript engine. Only after its installation, we can execute WebdriverIO tests. The steps to configure NodeJS are listed below −

Step 1 − Launch the application using the below link −

https://nodejs.org/en/download/

Step 2 − As per the local operating system (Windows, Mac or Linux) we are using, click on the link to download the Installer. The following screen will appear on your computer −

Operating System

Step 3 − Once the installer is downloaded, click on it. Navigate to the Node.js Installer welcome screen. Click on Continue. The following screen will appear on your computer −

Node.js Installer

Step 4 − Agree to the terms of agreement of Nodejs. The following screen will appear on your computer −

Agreement

Step 5 − Click on Install.

Step 6 − Once the success message of Nodejs installation is displayed, click on Close. The following screen will appear on your computer −

Success Message

Step 7 − To check if Nodejs is installed successfully, open the terminal and run the command −

node

The following screen will appear on your computer −

Screen Will Appear

The version of the Nodejs installed in the machine should be displayed.

Advertisements