Skip to content

About

Selenium WebDriver practice using Java and Maven. Covers locators, CSS Selectors, XPath, waits, actions, JavaScriptExecutor, data-driven testing, and more.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

41 Commits

Folders and files

Repository files navigation

Selenium Java Practice

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.

Topics Covered

Locators

  • CSS Selectors
  • XPath
  • XPath Functions
  • XPath Types

WebDriver & Browser

  • WebDriver Methods
  • Browser Methods
  • Navigation Commands
  • Get Methods
  • Conditional Methods
  • Browser Windows & Tabs
  • Handling Multiple Browser Windows
  • Closing Specific Browser Windows

Waits

  • Implicit Wait
  • Explicit Wait
  • Fluent Wait
  • Thread.sleep()

Web Elements

  • Checkboxes
  • Different Types of Dropdowns
  • Auto-Suggest Dropdowns
  • Date Pickers
  • Web Tables
  • Dynamic Pagination Tables
  • SVG Elements
  • Shadow DOM

Alerts & Frames

  • JavaScript Alerts
  • Confirmation Alerts
  • Prompt Alerts
  • Frames / iFrames
  • Nested iFrames

Mouse & Keyboard Actions

  • Action vs Actions
  • Right Click
  • Double Click
  • Drag and Drop
  • Mouse Hover
  • Keyboard Actions
  • Opening Links in New Tabs

JavaScript & Browser Features

  • JavaScriptExecutor
  • Scrolling Pages
  • File Upload
  • Screenshots
  • Headless Browser
  • SSL Handling
  • Browser Extensions
  • Ad Blocking

Advanced Selenium

  • Broken Links
  • SVG Elements
  • Shadow DOM
  • Multiple Windows & Tabs

Data-Driven Testing

  • 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

Tech Stack

  • Java
  • Selenium WebDriver
  • Maven
  • TestNG
  • Apache POI
  • ChromeDriver

Repository Structure

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/

Purpose

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.

Status

🚧 In Progress

More Selenium and automation testing examples will be added as I continue learning.

About

Selenium WebDriver practice using Java and Maven. Covers locators, CSS Selectors, XPath, waits, actions, JavaScriptExecutor, data-driven testing, and more.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages