A collection of Selenium WebDriver practice examples using Java and Maven.
This repository contains hands-on examples covering Selenium locators, browser operations, waits, web elements, user interactions, JavaScript execution, web tables, file handling, advanced Selenium features, and data-driven testing.
- CSS Selectors
- XPath
- XPath Functions
- XPath Types
- WebDriver Methods
- Browser Methods
- Navigation Commands
- Get Methods
- Conditional Methods
- Browser Windows & Tabs
- Handling Multiple Browser Windows
- Closing Specific Browser Windows
- Implicit Wait
- Explicit Wait
- Fluent Wait
- Thread.sleep()
- Checkboxes
- Different Types of Dropdowns
- Auto-Suggest Dropdowns
- Date Pickers
- Web Tables
- Dynamic Pagination Tables
- SVG Elements
- Shadow DOM
- JavaScript Alerts
- Confirmation Alerts
- Prompt Alerts
- Frames / iFrames
- Nested iFrames
- Action vs Actions
- Right Click
- Double Click
- Drag and Drop
- Mouse Hover
- Keyboard Actions
- Opening Links in New Tabs
- JavaScriptExecutor
- Scrolling Pages
- File Upload
- Screenshots
- Headless Browser
- SSL Handling
- Browser Extensions
- Ad Blocking
- Broken Links
- SVG Elements
- Shadow DOM
- Multiple Windows & Tabs
- Reading Data from Excel
- Writing Data into Excel
- Writing Data to Specific Rows and Cells
- Writing Dynamic Data into Excel
- Selenium Data-Driven Testing with Apache POI
- Java
- Selenium WebDriver
- Maven
- TestNG
- Apache POI
- ChromeDriver
selenium-java-practice/
│
├── alerts/
├── auto-suggest-dropdown/
├── broken-links/
├── checkboxes/
├── data-driven-testing/
├── date-picker/
├── dropdowns/
├── extensions/
├── file-upload/
├── frames/
├── headless/
├── javascript-executor/
├── keyboard-actions/
├── locators/
├── mouse-actions/
├── screenshots/
├── scrolling-pages/
├── shadow-dom/
├── sliders/
├── ssl/
├── svg-elements/
├── waits/
├── web-tables/
├── webdriver-methods/
└── windows-tabs/
This repository is mainly for learning and practicing Selenium WebDriver concepts through small, focused Java examples.
The examples are organized by topic so they can be easily revisited while preparing for automation testing interviews.
🚧 In Progress
More Selenium and automation testing examples will be added as I continue learning.