Skip to main content
SeleniumDecoded

Learn Selenium

67 lessons across 10 chapters. Every example includes code in Java, Python, JavaScript, and C#, verified against Selenium 4.48.0.

Chapter 1 7 lessons

Setup & Basics

Install Selenium, understand how WebDriver works, configure browsers, and write your first test

  • Getting Started with Selenium
  • Browser Options & Configuration
  • Finding Elements
  • Project Structure
  • Selenium Manager and Driver Management
  • +2 more
Chapter 2 6 lessons

Locators & Navigation

Find elements with IDs, CSS selectors, XPath, relative locators, and a strategy that survives UI changes

  • ID, Name, and Class Locators
  • CSS Selectors
  • XPath Basics
  • XPath Advanced Techniques
  • Relative Locators
  • +1 more
Chapter 3 7 lessons

Actions & Interactions

Click, type, scroll, drag, drop, and drive keyboard and mouse with the Actions API

  • Click and Type
  • Forms and Inputs
  • Dropdowns and Select Elements
  • Drag and Drop
  • Keyboard Actions
  • +2 more
Chapter 4 6 lessons

Waits & Synchronization

Handle dynamic content with implicit, explicit, fluent, and custom waits plus page load strategies

  • Implicit Waits
  • Explicit Waits
  • Fluent Waits
  • Expected Conditions
  • Page Load Strategy and Timeouts
  • +1 more
Chapter 5 9 lessons

Advanced Features

iFrames, windows, alerts, uploads, Shadow DOM, cookies, WebAuthn, PDF printing, and JavaScript execution

  • iFrames and Frames
  • Windows and Tabs
  • Alerts and Popups
  • File Uploads
  • JavaScript Executor
  • +4 more
Chapter 6 5 lessons

Design Patterns

Page Object Model, Page Factory, Screenplay, driver factories, and data-driven test architecture

  • Page Object Model
  • Page Factory
  • Data-Driven Testing
  • Screenplay Pattern
  • Driver Factory and Thread Safety
Chapter 7 9 lessons

Frameworks & Integrations

TestNG, JUnit, pytest, Mocha, NUnit, Cucumber, CI/CD pipelines, Docker, and reporting

  • TestNG and JUnit Integration
  • pytest Integration
  • Mocha and Jest
  • Cucumber and BDD
  • NUnit and MSTest
  • +4 more
Chapter 8 5 lessons

Debugging & Best Practices

Diagnose flaky tests, capture logs and screenshots, and decode the common exceptions

  • Debugging Tips
  • Screenshots and Videos
  • Common Errors
  • Flaky Tests: Diagnosis and Cure
  • Browser and Driver Logs
Chapter 9 6 lessons

Performance & Scaling

Parallel execution, Selenium Grid on Docker and Kubernetes, headless browsers, and cloud platforms

  • Parallel Execution
  • Selenium Grid
  • Headless Browsers
  • Grid on Docker and Kubernetes
  • Cloud Testing Platforms
  • +1 more
Chapter 10 7 lessons

Selenium 4, BiDi & Beyond

What's new in Selenium 4, migrating from 3, WebDriver BiDi, CDP, how Selenium compares to Playwright and Cypress, and AI-assisted testing

  • What's New in Selenium 4
  • Migrating from Selenium 3 to 4
  • WebDriver BiDi
  • Network Interception with BiDi
  • Chrome DevTools Protocol (CDP)
  • +2 more

New to Selenium?

Start with the basics and work your way up

Start with Chapter 1