Automate web interactions with Any web site using Java. This project demonstrates the automation of various features of the popular online any website and Updated the project with suite test.
Welcome to the Web Automation project for [Any Website). This project showcases web automation using Java for the popular online book retailer.
The project is organized into the following main components:
- ๐
BaseDriver
: Contains driver and page settings. - ๐
Pages
: Includes classes for various this website features. - ๐
Tests
: Test cases that use the Page Object Model.
To get started with this project, follow these steps:
- Test tool: Selenium
- Language: Java
- Framework: TestNG.
- Open/install Java JDK 11 version on your PC
- Install Maven on your PC
- Install TestNG on your IDE
- Install Eclipse/STS or any other IDE
- Setup Java, Maven environment on your PC
- Chrome driver match with your browser
- Set up a Java development environment.
These steps are executed:
- Open the Chrome browser
- Maximize the browser window
- Go to Selenium Web Site
- Click About Menu Section
- Click sub about menu
- Get "Selenium is a suite of tools for automating web browsers" text and validate it.
- Take Screenshot
- Close the browser
- Ensure you have Selenium WebDriver installed.
- Update the web driver path and any necessary configurations in
DriverSetting.java
.
To run the test cases, use the Test classes in the Tests
package. Each class corresponds to a different feature.