
We commented to code as much as possible for better understanding and readability. Step 4: In our first automated test script we will try to login to the Facebook web version automatically. Step 3: Start Selenium Webdriver Server $ sudo webdriver-manager start Step 2: Install local dependencies (Puppeteer, Faker etc.) Step 2: Install global dependencies (JEST) Here we assume that you already have Selenium Webdriver installed on your system. Let’s now try to install & implement our first program with Puppeteer & JEST. Yeah, it’s kind of like Faker for PHP or Python. It can also be configured to use full (non-headless) Chrome or Chromium.įaker, a Node.js library for generating random data. It’s rather new but it is a good time to check it out and see how it could fit inside your workflow.

Puppeteer, a Node.js library for controlling headless Chrome. It aims to work out of the box and config free. It works with projects using: Babel, TypeScript, Node.js, React, Angular and Vue.js.

Jest is a JavaScript Testing Framework with a focus on simplicity.
