Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.22 KB

chapter_01.md

File metadata and controls

25 lines (16 loc) · 1.22 KB

Setup Environment

Objective

The goal in this chapter is to setup the environment we need to use WebdriverIO.

Install Node.JS

The project is build on top of Node.js which is a JavaScript runtime built on Chrome's V8 JavaScript engine. It can be installed on all major OS systems such as Windows, Mac or Linux. In order to get it, open the download page of the project and choose the installer of your environment. It is recommended to download the latest LTS (long-time support). Currently this is Node.js v20.12.0.

This will also install NPM for you which is the package manager for Node.js. NPM is required to download the WebdriverIO package.

Setup Course Directory

As we walk through each chapter we will build up a project that we can use as to run automated tests with WebdriverIO. To check in all changes, let's create a directory for it and init git:

$ cd ~
$ mkdir ./webdriverio-hands-on
$ cd ./webdriverio-hands-on
$ git init

If you don't have git installed you can leave out that step and don't check in. There are various of documentations that will get you up and running with Git.