This project demonstrates an automated script using Java Selenium to book a bus on Redbus.com. The project is structured with a POM (Page Object Model) class for the web elements, a separate class to handle date selection, and a test case to execute the booking process.
- Java Development Kit (JDK) 11+
- Apache Maven
- Selenium WebDriver
- ChromeDriver
- Clone this repo: https://github.com/MrVamc/RedBus_POM_ExtentReports.git
- Ensure your pom.xml is configured to include the necessary dependencies for Selenium and TestNG.
- Make sure chromedriver is installed and its path is set in the code: System.setProperty("webdriver.chrome.driver", "path/to/chromedriver");
- POM Class: Contains the web elements and actions for the Redbus homepage.
- Date Class: Handles the logic for selecting today's date.
- redbusAutomation Class: Executes the test case to book a bus.
Feel free to fork this project and make contributions. Pull requests are welcome!