# Selenium

> Tools that drive web browsers from code, in many languages.

**Field:** Software Development  
**Category:** Testing & Quality  
**Also known as:** Selenium WebDriver, WebDriver, Selenium Grid

## Think of it like

Think of it like a remote that works with almost any TV. You use one remote for all of them.

## Definition

Selenium is a set of tools that drive web browsers from code. Its main part, WebDriver, controls a browser the way a person would. WebDriver is now an official web standard, so every big browser supports it. You can write Selenium tests in Java, Python, C#, Ruby, JavaScript and Kotlin. It is one of the oldest browser test tools. Many teams still use it.

## Example

A bank's test team writes Selenium tests in Java. The same tests run on Chrome, Firefox and Edge each night.

## Example code

```python
from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get("https://example.com/login")
driver.find_element(By.NAME, "email").send_keys("emma@example.com")
driver.quit()
```

Open Chrome, load the login page, type an email, then close.

## Why it matters

It works with many languages and every big browser, so most teams can use it.

## Common mistake

Using fixed sleeps to wait for pages. Wait for the element instead, or tests turn flaky.

## Three principles

- **WebDriver.** A web standard every browser supports.
- **Many languages.** Java, Python, C# and more.
- **Many browsers.** One test, several browsers.

## Related terms

- [End-to-End Test (E2E)](https://learn.benibix.com/term/development/end-to-end-test)
- [Playwright](https://learn.benibix.com/term/development/playwright)
- [Cypress](https://learn.benibix.com/term/development/cypress)
- [Browser Automation](https://learn.benibix.com/term/development/browser-automation)
- [Flaky Test](https://learn.benibix.com/term/development/flaky-test)

## Told apart from

- [Selenium vs Playwright](https://learn.benibix.com/compare/selenium-vs-playwright): People think Selenium and Playwright are old and new names for one tool, and they are not. Selenium dates from 2004 and talks to each browser through the WebDriver standard, in languages such as Java, C# and Ruby. Playwright came out in 2020. It waits for each button to be ready by itself, so its tests tend to break less.

![A table of test tools by job. Unit tests: Jest and Vitest for JavaScript, pytest for Python, JUnit for Java. UI components: Testing Library, which finds things the way a user does. Browser end-to-end tests, lit up: Cypress, Playwright and Selenium, which drive a real browser.](https://learn.benibix.com/diagrams/dev3-test-tools.svg)

---

Source: https://learn.benibix.com/term/development/selenium
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
