Skip to content

csie-afacerielectronice/simple-automation

Repository files navigation

simple-automation

This example performs an end-to-end journey to buy a phone.

The script starts from a landing pages, chooses a phone, adds the phone to the basket and then proceeds to checkout where ir fills in all the details.

THe purpose of this script is to demonstrate simple automation techniques like using css selectors, capturing screenshots and waiting for resources to load

Requirements

  • NodeJS >= 10
  • NPM
  • Chromium (automaticaly installed by puppeteer)

Install

  1. Clone the repo
git clone https://github.com/csie-afacerielectronice/simple-automation

In case proxy is needed

git config --global http.proxy http://cache.ase.ro:8080
git config --global https.proxy http://cache.ase.ro:8080
  1. Install dependencies
npm install

In case proxy setup is needed make sure you configure

npm config set proxy http://cache.ase.ro:8080
npm config set https-proxy http://cache.ase.ro:8080

remove proxy

npm config rm proxy
npm config rm https-proxy

Run

node buy-phone-journey.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published