Test Tools · UI / E2E Automation

Selenium WebDriver

The long-established standard for browser automation. Widely used in enterprise and legacy codebases across NZ.

Overview

Selenium WebDriver, first released in 2004, is the most widely adopted browser automation framework in history. It drives browsers via the W3C WebDriver protocol and supports more programming languages and browser versions than any alternative. Selenium 4 (released 2021) added CDP support, relative locators, and improved grid architecture.

In NZ enterprise environments — particularly banking, insurance, and government — Selenium remains the dominant automation tool. Organisations with large existing Java or C# codebases often stick with Selenium because migrating thousands of tests to Playwright is prohibitively expensive.

What it's used for

Selenium is the right choice when:

  • Legacy system testing: Older web applications built on ASP.NET WebForms, Java Server Faces, or similar frameworks often have compatibility issues with modern tools.
  • Multi-language enterprise teams: If your organisation has Java, C#, Python, and Ruby teams all writing automation, Selenium is the common denominator.
  • Custom browser requirements: Selenium Grid supports more browser versions and configurations than any competitor.
  • Extensive third-party integration: Decades of ecosystem growth means every CI tool, test framework, and reporting platform supports Selenium.

Pros & Cons

Pros

  • Broadest language support: Java, C#, Python, Ruby, JavaScript, Kotlin
  • W3C WebDriver standard ensures browser vendor compatibility
  • Selenium Grid enables distributed execution across many machines
  • Massive ecosystem: every CI tool, framework, and cloud platform integrates
  • Free and open source with no vendor lock-in

Cons

  • No native auto-waiting — explicit waits required to avoid flakiness
  • Slower than Playwright and Cypress due to WebDriver protocol overhead
  • Setup complexity: driver binaries must match browser versions exactly
  • Test debugging is harder without built-in trace viewers
  • Selenium IDE record-and-replay produces brittle scripts

Platforms & Integrations

Selenium runs on Windows, macOS, and Linux. It supports Chrome, Firefox, Safari, Edge, and Internet Explorer (legacy).

Windows macOS Linux Chrome Firefox Safari Edge Java C# Python Ruby JavaScript Selenium Grid Docker Jenkins GitHub Actions

Pricing

TierCostIncludes
Open SourceFreeWebDriver, Grid, IDE, all language bindings
Selenium Cloud (Sauce Labs/BrowserStack)$29-$199/moManaged grid, real devices, test analytics

NZ Context

Selenium is still the most common E2E tool in NZ enterprise job postings. ANZ Bank, ASB, and IAG maintain large Selenium suites in Java and C#. The Selenium project is actively maintained by the non-profit Selenium Foundation. NZ testers should know Selenium even if their current role uses Playwright — interviewers frequently ask candidates to compare the two.

Alternatives

  • Playwright — Faster, more reliable, and better DX for modern web apps. The 2026 default for new projects.
  • Cypress — Better for frontend developers who want debugging inside the browser.
  • WebdriverIO — A modern JavaScript wrapper around WebDriver with better DX than raw Selenium.

Learn more