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
- NodeJS >= 10
- NPM
- Chromium (automaticaly installed by puppeteer)
- 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
- 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
node buy-phone-journey.js