An open API service indexing awesome lists of open source software.

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.

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**

ecom_1
ecom_2
ecom_3

---

## ๐Ÿงพ 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.

---