This project demonstrates automation of the [Website Name] using Selenium WebDriver in Java, following the Page Object Model (POM) design pattern. It focuses on automating key workflows such as login, search, filter, add-to-cart, and checkout to ensure the application's functionality and reliability.
- Functional testing of login, search, filter, product selection, and checkout workflows.
- Reusable Page Object Model structure separating locators and actions from test scripts.
- Test execution using TestNG framework.
- Assertion-based verification for accurate test results.
- Handling of dynamic elements, alerts, dropdowns, and waits for robust automation.
- Generation of detailed logs and screenshots for failed test cases.
- Easy maintenance and scalability for future test cases.
src/ │ ├─ pages/ # Page classes containing locators and methods ├─ tests/ # Test classes using TestNG ├─ utils/ # Utility classes (e.g., WebDriver setup, waits, logger) └─ resources/ # Test data and configuration files
- Java JDK 11 or higher
- Maven
- Selenium WebDriver
- TestNG
- ChromeDriver / GeckoDriver
- IDE (Eclipse, IntelliJ IDEA)
- Clone the repository:
git clone [repository-url]
Open the project in your IDE.
Install required dependencies using Maven:
mvn clean install Run test classes using TestNG XML files or directly from your IDE.
Test reports and screenshots for failed tests will be generated in the test-output folder.
Technologies Used
Java
Selenium WebDriver
TestNG
Maven
Page Object Model (POM)
Author Muskan Patel