Learn Selenium
67 lessons across 10 chapters. Every example includes code in Java, Python, JavaScript, and C#, verified against Selenium 4.48.0.
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
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
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
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
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
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
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
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
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
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
Recipes
Copy-paste solutions to specific problems.
Practice
Quizzes and debugging challenges per chapter.
Interview Prep
Questions and model answers, junior to senior.
Releases & News
What changed in each Selenium 4.4x release.