Skip to content

ArpitChoubey/Selenium-WebDriver-E-commerce-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 

Repository files navigation

🚀 Selenium WebDriver E‑commerce Application Used

A production‑ready, SDET‑style Selenium automation repository built using Java + Selenium WebDriver + Maven, covering real‑world UI automation scenarios, advanced browser handling, data‑driven testing, exception handling, and Chrome DevTools (CDP) use cases.

This repository is designed to showcase hands‑on SDET skills, not just theory.


🧩 Key Highlights

✔ End‑to‑End Selenium WebDriver automation examples ✔ Clean package structure following industry practices ✔ Advanced Selenium concepts (CDP, Shadow DOM, SVG, JS Executor) ✔ Data‑Driven Testing using Excel (Apache POI) ✔ Robust Exception Handling coverage ✔ Maven‑based project (easy dependency management) ✔ Screenshot capture & test artifacts ✔ Ideal for SDET / Automation Engineer interviews & portfolios


🏗 Project Structure

Selenium-WebDriver-E-commerce-Application
│
├── eclipse-workspace/
│   └── SeleniumPractice/
│       ├── src/test/java/
│       │   ├── SeleniumP/            # All Selenium concepts
│       │   ├── DataDrivenTesting/     # Excel-based data driven tests
│       │   ├── Exceptions/            # Selenium exception handling demos
│       │   └── ChromeDevTools/         # Chrome DevTools (CDP) examples
│       │
│       ├── Screenshots/               # Captured test screenshots
│       ├── TestData/                  # Excel & test data files
│       ├── pom.xml                    # Maven dependencies
│       └── README.md

🧪 Selenium Concepts Covered

🔹 Core Selenium WebDriver

  • Locators (ID, Name, Class, CSS, XPath)
  • XPath (Absolute, Relative, Advanced)
  • WebElement methods
  • Browser navigation & window handling
  • Tabs & multiple windows
  • Frames & iFrames
  • Alerts & JavaScript pop‑ups
  • Mouse & Keyboard actions
  • Drag & Drop, Sliders, Hover actions

🔹 Advanced Selenium

  • Shadow DOM handling
  • SVG elements interaction
  • JavaScriptExecutor usage
  • File upload handling
  • Captcha awareness handling
  • Headless browser testing
  • Page Load Strategy & Timeouts

🔹 Wait Strategies

  • Implicit Wait
  • Explicit Wait
  • Fluent Wait

📊 Data‑Driven Testing

Implemented using Apache POI:

  • Read data from Excel
  • Write data into Excel
  • Dynamic data writing
  • Random & specific data handling

📁 Package: DataDrivenTesting


🚨 Selenium Exception Handling

Comprehensive coverage of real Selenium exceptions, including:

  • NoSuchElementException
  • TimeoutException
  • StaleElementReferenceException
  • ElementClickInterceptedException
  • InvalidSelectorException
  • NoSuchWindow / Frame / Session exceptions

📁 Package: Exceptions


🧠 Chrome DevTools (CDP)

Advanced browser‑level automation using CDP:

  • Execute CDP commands
  • Capture console logs
  • Network offline simulation
  • Load insecure websites

📁 Package: ChromeDevTools


🛠 Tech Stack

  • Language: Java
  • Automation Tool: Selenium WebDriver
  • Build Tool: Maven
  • Test Data: Excel (Apache POI)
  • Browser: Chrome
  • IDE: Eclipse
  • Version Control: Git & GitHub

▶ How to Run the Project

  1. Clone the repository

    git clone https://github.com/ArpitChoubey/Selenium-WebDriver-E-commerce-Application.git
  2. Open Eclipse

  3. Import as Existing Maven Project

  4. Update Maven dependencies

  5. Run any *.java file as Java Application


📸 Screenshots

All captured screenshots during execution are stored in:

Screenshots/

🎯 Ideal For

  • SDET / Automation Engineer Portfolio
  • Selenium Interview Preparation
  • Real‑world Selenium practice
  • QA Engineers transitioning to Automation

👨‍💻 Author

Arpit Choubey SDET | QA | Automation Engineer

🔗 LinkedIn: https://www.linkedin.com/in/arpitchoubey/Medium: https://medium.com/@ArpitChoubey9


⭐ Support

If this repository helped you:

👉 Please Star ⭐ the repo to support and motivate further contributions!

Happy Testing 🚀

About

Selenium WebDriver Latest Version 4.39.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages