This is a Selenium WebDriver project written in Java, using TestNG for testing. The project includes basic automated tests for the Amazon India website.
- Java 22
- Maven
- ChromeDriver
-
Clone the repository:
git clone https://github.com/belaletech/selenium_Maven.git
-
Navigate to the project directory:
cd MiniProject2 -
Ensure that the path to
chromedriver.exeinminiTest.javais correct. -
Run the tests using Maven:
mvn test
- verifyTitle: Validates the title of the Amazon India homepage.
- verifyLogo: Confirms that the Amazon logo is displayed.
- searchProduct: Searches for "MacBook" on Amazon India.
The project uses the following dependencies:
- Selenium Java (4.23.0)
- TestNG (7.10.2)
These are managed through the pom.xml file.
This project is licensed under the MIT License.