WebdriverIO - Package.json



Once the package.json file gets generated, we need to install other npm packages for WebdriverIO. The details of how the package.json file got created are discussed in detail in the Chapter titled Installation of NPM.

The necessary packages for WebdriverIO in the NPM registry can be found in the below link −

https://www.npmjs.com/package/webdriverio

The following screen will appear on your computer −

NPM Registry

For installation of WebdriverIO, we have to run the below command from the terminal −

npm i webdriverio 

or

npm install webdriverio.

The following screen will appear on your computer −

Installation of WebdriverIO

After the command gets executed successfully, the package.json now displays the WebdriverIO version installed.

We can verify if the WebdriverIO has installed successfully, if the folder node_modules created within the project contains the webdriverio folder.

The following screen will appear on your computer −

Installed Successfully
Advertisements