- Go to the URl: http://automationpractice.com/index.php
- Create two new accounts
- Login with the any of the new account
- Go to the Casual Dresses section and add a dress into the cart
- Go to the T-shirt section > Filter the list with blue color > Add a shirt from the filter list
- Now checkout and select the payment process ‘Payment by check’
- Sign out from the account
Run the above cycle for another user.
- Check your chrome version. Go to addressbar of Chrome browser, paste and enter this
chrome://version/
- Download Chrome Driver from here (must match your browser version)
https://chromedriver.storage.googleapis.com/index.html.
- Unzip it and add folder path containing driver to your computer's environment variable. Example for me it was
C:\Users\Biswajit\Downloads\chromedriver_win32\
-
Change email addresses of two user in constants/userDetails.js
-
This project requires Node.js and tested on v16.13.2 but will run any latest version (I hope)
Install the dependencies and start the server.
cd automationpractice
npm i
npm run start