A comprehensive Selenium WebDriver automation suite demonstrating real-time web interaction scenarios
Features β’ Installation β’ Usage β’ Contributing
This repository contains a robust Selenium WebDriver automation suite implemented in Java that demonstrates automation of various real-time web interaction scenarios. It is designed as a hands-on reference for mastering different Selenium features and advanced user actions.
Perfect for QA engineers, automation testers, and developers looking to enhance their Selenium skills! π‘
Scan and detect dead hyperlinks across web pages to ensure link integrity.
Select/deselect multiple checkboxes with advanced selection patterns.
Switch and interact seamlessly with iframe content embedded in pages.
Manage and switch between multiple browser windows or tabs effortlessly.
Run JavaScript commands like scrolls, clicks, or data entry for complex interactions.
Automate typing, keyboard shortcuts, and special key handling (Enter, Tab, etc.).
Hover to reveal menus, tooltips, and hidden elements.
Capture screenshots during test execution for debugging and reporting.
Select dates from calendar widgets with precision and ease.
Select options by index, value, or visible text from dropdown menus.
Manage JavaScript alerts, confirmations, and prompts programmatically.
Upload files using sendKeys or Robot class for native file dialogs.
Run tests in a headless browser mode for CI/CD pipelines and faster execution.
Master different locator techniques: ID, XPath, CSS Selectors, Class Name, and more.
- β Java JDK 8 or higher
- π¦ Maven or Gradle
- π ChromeDriver/GeckoDriver (or WebDriverManager)
# Clone the repository
git clone https://github.com/yourusername/selenium-automation.git
# Navigate to project directory
cd selenium-automation
# Install dependencies
mvn clean installRun individual test scenarios or execute the complete test suite:
# Run all tests
mvn test
# Run specific test class
mvn test -Dtest=CheckboxHandlingTest
# Run in headless mode
mvn test -Dheadless=trueselenium-automation/
βββ src/
β βββ main/java/ # Core framework code
β βββ test/java/ # Test scenarios
βββ drivers/ # WebDriver executables
βββ screenshots/ # Captured screenshots
βββ pom.xml # Maven configuration
βββ README.md # This file
Contributions are welcome! Feel free to:
- π Report bugs
- π‘ Suggest new features
- π§ Submit pull requests
Saran Kumar
This project is open source and available under the MIT License.