A Selenium-based test automation framework for SauceDemo, built using Java, TestNG, and WebDriver. It follows the Page Object Model (POM) and includes utility classes for handling waits, actions, and browser interactions.
- Login Test: Automates the login process with valid credentials.
- Page Object Model (POM): Keeps the test structure clean and maintainable.
- Explicit Waits: Ensures stable and reliable element interactions.
- Utility Classes: Includes reusable methods for element actions, scrolling, and browser navigation.
- Java
- Selenium WebDriver
- TestNG
- Maven
git clone https://github.com/your-username/demo-test-automation-project.git2️⃣ Install dependencies: Make sure you have Java and Maven installed, then run:
mvn clean install3️⃣ Run the tests:
mvn test📦 src
┣ 📂 mainTry
┃ ┗ 📂 java
┃ ┃ ┣ 📂 com.swaglabs.pages # Page Object Model (POM)
┃ ┃ ┗ 📂 com.swaglabs.utils # Utility classes (Waits, Actions, etc.)
┣ 📂 test
┃ ┗ 📂 java
┃ ┃ ┗ 📂 com.swaglabs.tests # Test cases (LoginTest)
This project is for learning purposes and is not affiliated with SauceDemo.