https://github.com/imswappy/ecommerce-automation
End-to-end e-commerce website automation using Selenium and Python. Automates browsing, product selection, adding to cart, checkout as guest, and order confirmation on a demo store. Includes screenshots, dynamic inputs, and real-world UI interactions.
https://github.com/imswappy/ecommerce-automation
automation python selenium-python selenium-webdriver
Last synced: about 1 month ago
JSON representation
End-to-end e-commerce website automation using Selenium and Python. Automates browsing, product selection, adding to cart, checkout as guest, and order confirmation on a demo store. Includes screenshots, dynamic inputs, and real-world UI interactions.
- Host: GitHub
- URL: https://github.com/imswappy/ecommerce-automation
- Owner: Imswappy
- Created: 2025-08-29T21:47:33.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-29T21:50:01.000Z (10 months ago)
- Last Synced: 2025-08-29T23:33:55.184Z (10 months ago)
- Topics: automation, python, selenium-python, selenium-webdriver
- Language: Python
- Homepage:
- Size: 491 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# ๐ E-Commerce Website Automation using Selenium & Python
## ๐ Overview
This project is an **end-to-end automation script** for an e-commerce demo website built using **Selenium WebDriver with Python**.
The script simulates a **real customer journey** on [TutorialsNinja E-commerce Demo](http://tutorialsninja.com/demo/):
- Browsing product categories (Phones, Laptops & Notebooks)
- Viewing product images and saving screenshots
- Adding multiple products to the cart
- Filling checkout form as a **guest user**
- Completing the checkout process
- Printing the final order price and success message
This project is based on the tutorial: *E-Commerce Website Automation with Selenium + Python*.
---
## ๐ ๏ธ Tech Stack
- **Python 3.x**
- **Selenium WebDriver**
- **Google Chrome** + **ChromeDriver**
- **ActionChains & Select** (Selenium APIs for advanced interactions)
---
## ๐ Project Structure
```
ECOMMERCE-AUTOMATION/
โ
โโโ automate.py # Main automation script
โโโ screenshots/ # Folder to save captured screenshots
โโโ README.md
```
---
## ๐ Setup & Installation
### 1๏ธโฃ Clone the Repository
```bash
git clone https://github.com/your-username/Ecom-Automation.git
cd Ecom-Automation
```
### 2๏ธโฃ Install Selenium
```
```
### 3๏ธโฃ Download ChromeDriver
- Download the correct version of **ChromeDriver** matching your Google Chrome browser:
๐ https://chromedriver.chromium.org/downloads
- Place it in a folder (e.g., `C:/bin/chromedriver.exe`) and update the script path accordingly.
---
## โถ๏ธ Run the Script
```bash
python automate.py
```
---
## ๐ธ Features Demonstrated
- Open website and maximize window
- Navigate through categories (Phones, Laptops & Notebooks)
- Open product details and browse images
- Capture and save **randomized screenshots**
- Add products with custom **quantity selection**
- Select delivery date using **calendar widget**
- Add products to cart and proceed to checkout
- Enter guest details (name, email, address, etc.)
- Agree to terms and confirm order
- Print **final price** and **order success message**

---
## ๐งพ Example Output
```
The final price of both products is $241.00
Your order has been placed!
```
---
## ๐ Notes
- This script is designed for **educational/demo purposes** on the [TutorialsNinja](http://tutorialsninja.com/demo/) site.
- The website and data reset periodically, so values (like product availability or prices) may vary.
- Screenshots are saved in the working directory by default.
---