Skip to content

About

πŸ§ͺ Selenium Automation Framework πŸš€ 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.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

8 Commits

Folders and files

Repository files navigation

πŸ§ͺ Selenium Automation Framework πŸš€

Selenium Java WebDriver

A comprehensive Selenium WebDriver automation suite demonstrating real-time web interaction scenarios

Features β€’ Installation β€’ Usage β€’ Contributing


πŸ“– Overview

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! πŸ’‘


✨ Features Covered

πŸ”— Broken Link Validation

Scan and detect dead hyperlinks across web pages to ensure link integrity.

β˜‘οΈ Checkbox Handling

Select/deselect multiple checkboxes with advanced selection patterns.

πŸ–ΌοΈ Iframe Handling

Switch and interact seamlessly with iframe content embedded in pages.

πŸͺŸ Window Handling

Manage and switch between multiple browser windows or tabs effortlessly.

⚑ JavaScript Executor

Run JavaScript commands like scrolls, clicks, or data entry for complex interactions.

⌨️ Keyboard Actions

Automate typing, keyboard shortcuts, and special key handling (Enter, Tab, etc.).

πŸ–±οΈ Mouse Hover Actions

Hover to reveal menus, tooltips, and hidden elements.

πŸ“Έ Screenshots

Capture screenshots during test execution for debugging and reporting.

πŸ“… Date Picker Automation

Select dates from calendar widgets with precision and ease.

πŸ“‹ Dropdown Handling

Select options by index, value, or visible text from dropdown menus.

🚨 Alert Handling

Manage JavaScript alerts, confirmations, and prompts programmatically.

πŸ“€ File Upload Automation

Upload files using sendKeys or Robot class for native file dialogs.

πŸ‘» Headless Testing

Run tests in a headless browser mode for CI/CD pipelines and faster execution.

🎯 Locator Strategies

Master different locator techniques: ID, XPath, CSS Selectors, Class Name, and more.


πŸ› οΈ Installation

Prerequisites

  • β˜• Java JDK 8 or higher
  • πŸ“¦ Maven or Gradle
  • 🌐 ChromeDriver/GeckoDriver (or WebDriverManager)

Setup Steps

# Clone the repository
git clone https://github.com/yourusername/selenium-automation.git

# Navigate to project directory
cd selenium-automation

# Install dependencies
mvn clean install

πŸš€ Usage

Run 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=true

πŸ“ Project Structure

selenium-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

🀝 Contributing

Contributions are welcome! Feel free to:

  • πŸ› Report bugs
  • πŸ’‘ Suggest new features
  • πŸ”§ Submit pull requests

πŸ‘¨β€πŸ’» Author

Saran Kumar


πŸ“„ License

This project is open source and available under the MIT License.


⭐ If you find this helpful, please give it a star!

Happy Testing! πŸŽ‰

About

πŸ§ͺ Selenium Automation Framework πŸš€ 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.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages