Skip to main content
SeleniumDecoded

Glossary

The vocabulary of Selenium and WebDriver in one place. Interviewers use these words; so do the release notes.

A

Accessibility tree
The browser's semantic model of the page (roles, names, states) that assistive technologies such as screen readers consume. Accessibility tools audit it; locators based on roles and labels follow it. Lesson →
Actions API
The low-level input API (Actions class in Java, ActionChains in Python) that builds sequences of mouse, keyboard, pen, wheel and pause actions and performs them as one W3C actions command. Lesson →
AGENTS.md also: CLAUDE.md
A repository file of instructions for AI coding agents (CLAUDE.md plays the same role for Claude Code). The selenium.dev AI guidance recommends rules such as "if an API is not in current docs it does not exist" and "never fix flakiness with sleeps". Lesson →
Alert
A native JavaScript dialog (alert, confirm or prompt) that blocks the page. Switch to it with driver.switchTo().alert() and accept, dismiss or send text; wait for it with alertIsPresent. Lesson →
Appium
An open-source automation server that implements the WebDriver protocol for native, hybrid and mobile-web apps on iOS and Android. It reuses Selenium client libraries, so the API feels familiar. Lesson →
Atoms
Shared JavaScript snippets (now TypeScript) that Selenium injects into the page to implement behaviour like isDisplayed and getAttribute consistently across browsers and bindings.
axe-core also: axe
The open-source accessibility rules engine from Deque. Injected into a page by a Selenium test, it returns WCAG violations with rule ids, impact and offending nodes. Lesson →

B

Baseline image
The approved reference screenshot a visual regression check compares against. A diff above the threshold fails the check until a human approves the change and the baseline is updated. Lesson →
BDD (Behaviour-Driven Development) also: Cucumber, Gherkin
A practice where behaviour is specified as Given/When/Then scenarios in Gherkin and bound to automation code with tools such as Cucumber, SpecFlow/Reqnroll or Behave. Lesson →
BiDi (WebDriver BiDi) also: WebDriver BiDi
The W3C bidirectional protocol that runs over a WebSocket next to classic WebDriver. It adds events (console logs, network requests, DOM mutations) and browser-agnostic interception that classic WebDriver cannot express. Lesson →
Browser driver also: chromedriver, geckodriver, msedgedriver, safaridriver
The browser-vendor executable that translates W3C WebDriver commands into browser actions: chromedriver, geckodriver (Firefox), msedgedriver and safaridriver. Selenium Manager resolves it for you. Lesson →
Browsing context
BiDi's term for a tab, window or frame. Most BiDi commands take a browsing context id, which maps to a WebDriver window handle for top-level contexts. Lesson →

C

Capabilities
The key-value map sent when a session is created that describes the browser, platform and behaviour you want (browserName, pageLoadStrategy, acceptInsecureCerts). In Selenium 4 you set them through the browser Options classes. Lesson →
CDP (Chrome DevTools Protocol)
Chromium's proprietary debugging protocol. Selenium 4 exposes it for Chromium browsers, but it is version-specific and being superseded by BiDi. Firefox support was removed in Selenium 4.29. Lesson →
Chrome for Testing
Google's pinned Chrome builds intended for automation. Selenium Manager can download a specific version so CI runs are reproducible. Lesson →
Component object
A Page Object for a reusable piece of UI (header, date picker, data table) rather than a whole page. Pages compose component objects so shared widgets are modelled once. Lesson →
CSS selector
A locator using CSS syntax (#id, .class, [attr=value], descendant and child combinators). Fast and readable; cannot match on text or walk up to parents, which is where XPath helps. Lesson →

D

Data-driven testing
Running the same test logic against many rows of input data supplied by parameters, CSV, JSON or a database instead of hard-coding values. Lesson →
DesiredCapabilities
The Selenium 3 way of building a capabilities map by hand. Replaced in Selenium 4 by browser Options classes; it should not appear in new code. Lesson →
Distributor
The Grid component that matches new session requests from the queue to Nodes with a matching stereotype. Can be Redis-backed since 4.44 for high availability. Lesson →
Downloads API also: Managed downloads, se:downloadsEnabled
The Grid feature for fetching files a browser downloaded on a remote Node: request se:downloadsEnabled, then list and fetch files (getDownloadableFiles / downloadFile). It replaced the per-file GET endpoint removed from Java in 4.49. Lesson →
Dynamic element
An element whose id, classes, text or position change between page loads or renders (generated ids, framework hashes). Locate it by stable attributes, structure or text rather than the changing parts. Lesson →
Dynamic Grid
A Grid Node that starts a fresh browser container (Docker) or Pod (Kubernetes, since 4.41) per session and tears it down afterwards, optionally with video recording. Lesson →

E

ElectronDriver also: Electron, ElectronOptions
Java support (ElectronOptions and ElectronDriver, since Selenium 4.45) for automating Electron desktop applications, which embed Chromium and are driven through chromedriver. Lesson →
Event Bus
The Grid component that carries internal messages between the Router, Distributor, Session Map, Session Queue and Nodes in a distributed deployment. Lesson →
Expected condition
A predicate passed to an explicit wait that returns a truthy value when the desired state is reached, such as visibilityOfElementLocated or a custom lambda. Lesson →
Explicit wait
A wait tied to a specific condition and timeout (WebDriverWait). Polls until the condition passes or the timeout expires. The recommended synchronisation strategy. Lesson →

F

Flaky test
A test that passes and fails without code changes. Usually caused by timing, shared state, test-order dependence or environment differences rather than product bugs. Lesson →
Fluent wait
An explicit wait with configurable polling interval and a list of exceptions to ignore while polling. WebDriverWait is a specialised FluentWait in Java. Lesson →
Frame (iframe) also: iframe
A document embedded inside another page. WebDriver searches only the current browsing context, so switch with driver.switchTo().frame(...) before locating elements inside it and switch back with defaultContent(). Lesson →

G

Guava
Google's Java utility library. Selenium's Java client dropped its Guava dependency in 4.51; ExpectedCondition now extends only java.util.function.Function, so code typed as com.google.common.base.Function must migrate. Lesson →

H

Headless
Running a browser without a visible window. Chrome's new headless mode (--headless=new, default since Chrome 112) is the full browser without UI, unlike the old separate implementation. Lesson →
Helm chart (Selenium Grid)
The official Helm chart for deploying Selenium Grid on Kubernetes, including autoscaling Nodes and, since 4.41, Traefik ingress support. Lesson →
Hub
In hub-and-node Grid mode, the single process that combines the Router, Distributor, Session Map, Session Queue and Event Bus. Nodes register with it. Lesson →

I

Implicit wait
A global timeout applied to every findElement call. Simple but blunt; mixing it with explicit waits produces unpredictable total wait times. Lesson →

J

JavascriptExecutor also: executeScript
The interface for running JavaScript in the page (executeScript, executeAsyncScript in Java; execute_script in Python). Useful for reading state; a poor substitute for real user interactions. Lesson →

L

llms.txt
A plain-text index of documentation intended for language models. Selenium publishes https://www.selenium.dev/llms.txt so AI coding agents can work from current docs instead of outdated training data. Lesson →
Locator
A strategy plus value used to find elements: id, name, class name, tag name, link text, partial link text, CSS selector, XPath, and relative locators. Lesson →

M

Mobile emulation
A Chromium feature (set via ChromeOptions mobileEmulation) that mimics a device's viewport, pixel ratio, user agent and touch input in desktop Chrome. Good for responsive checks; not a substitute for real devices. Lesson →

N

Network interception
Pausing, inspecting, modifying, mocking or failing HTTP requests from the test. In Selenium 4 it is done through WebDriver BiDi (browser-agnostic) or, for Chromium only, CDP. Lesson →
New Session Queue also: Session Queue
The Grid component that holds incoming new session requests until the Distributor finds a free slot with a matching stereotype, or the request times out. Lesson →
Node (Grid)
A Grid component that owns browser slots and executes sessions. Registers its stereotypes with the Distributor. Lesson →

O

Options classes also: ChromeOptions, FirefoxOptions
ChromeOptions, FirefoxOptions, EdgeOptions and SafariOptions: typed builders for browser arguments, preferences, page load strategy and capabilities. The Selenium 4 replacement for DesiredCapabilities. Lesson →

P

Page Factory
A Java-centric helper that initialises Page Object fields annotated with @FindBy using proxies that locate elements lazily. Lesson →
Page load strategy
Controls when driver.get returns: normal waits for the load event, eager for DOMContentLoaded, none returns immediately. Lesson →
Page Object Model (POM)
A design pattern where each page or component gets a class exposing user-level actions and hiding locators, so UI changes are fixed in one place. Lesson →
Performance metrics also: Core Web Vitals
Timing data the browser records, such as Navigation Timing, Resource Timing and Core Web Vitals, which a Selenium test can read and compare against budgets. Lesson →
Preload script
A WebDriver BiDi script registered to run in every new document before the page's own scripts. Used to stub APIs, seed state or install listeners before the app starts. Lesson →

R

Relative locators
Selenium 4 locators that find an element by its position relative to another (above, below, toLeftOf, toRightOf, near). Use them when the DOM offers no stable attribute. Lesson →
Relay node
A Grid Node configured to forward sessions to another WebDriver endpoint, such as an Appium server or a cloud service, so they appear as ordinary Grid slots. Lesson →
RemoteWebDriver
The driver class that talks to a remote endpoint (Grid or cloud provider) over HTTP. All local drivers extend it. Lesson →
Router
Grid's entry point. Forwards new session requests to the queue and existing session commands to the owning Node. Lesson →

S

Screenplay pattern
A user-centred alternative to POM built from Actors, Abilities, Tasks, Interactions and Questions. Scales well for large teams; heavier to start. Lesson →
Select class
Selenium's support helper for native <select> elements: select by visible text, value or index and read selected options. It does not work on custom JavaScript dropdowns. Lesson →
Selenium Grid
The server that lets tests run on remote machines and browsers in parallel. Runs in standalone, hub-and-node or fully distributed modes. Lesson →
Selenium IDE
A browser extension for recording and replaying tests without code. Useful for exploration and bug reproduction, not for maintainable suites.
Selenium Manager
The Rust binary bundled with Selenium 4.6+ that finds or downloads the matching driver and, if needed, the browser itself, so you no longer manage chromedriver paths. Lesson →
Session
One browser instance controlled by one driver object, identified by a session id. Created on driver construction and destroyed by quit(). Lesson →
Session Map
The Grid component that records which Node owns each session id, so the Router can forward commands for an existing session to the right Node. Lesson →
Shadow DOM
An encapsulated subtree attached to a host element. Standard locators cannot see inside it; use element.getShadowRoot() (Selenium 4.0+) and CSS selectors from the root. Lesson →
Shadow root
The root node of a shadow DOM tree. element.getShadowRoot() returns it as a search context; search inside with CSS selectors. Closed shadow roots are not accessible to WebDriver. Lesson →
Stale element
A WebElement reference whose DOM node was removed or replaced after the element was found. Re-find the element instead of caching it. Lesson →
Standalone mode
Running every Grid component plus a Node in one process (selenium-server standalone). The simplest way to run a local or single-container Grid. Lesson →
Stereotype
The capabilities a Grid Node advertises for a slot (browserName, browserVersion, platformName). The Distributor matches session requests against stereotypes. Lesson →

T

Test pyramid
The guideline that most tests should be fast unit tests, fewer integration tests, and only a thin layer of end-to-end browser tests like Selenium suites. Lesson →
Testcontainers
A library that starts throwaway Docker containers from test code. Its Selenium module gives each test class a fresh browser container, optionally with video recording. Lesson →
ThreadLocal driver
A pattern for parallel execution where each test thread gets its own WebDriver instance stored in a ThreadLocal (or equivalent), preventing cross-test interference. Lesson →

V

Virtual authenticator
A WebDriver feature that emulates a WebAuthn (passkey/FIDO2) authenticator so you can test passwordless login flows without hardware. Lesson →
Visual regression testing
Comparing screenshots of pages or components against approved baselines to catch unintended visual changes that functional assertions miss. Lesson →

W

W3C WebDriver
The browser automation standard Selenium 4 implements exclusively. It defines the HTTP endpoints and JSON payloads every browser driver speaks. Lesson →
Web extension
A browser add-on. Selenium installs extensions on the running browser (driver.installAddon for Firefox) or through the BiDi webExtension module; deprecated Firefox profile extension methods were removed in 4.50. Lesson →
WebElement
Selenium's handle to a DOM element. Exposes click, sendKeys, getText, getAttribute, isDisplayed and more. Becomes stale if the DOM node is replaced. Lesson →
Window handle
An opaque string identifying a top-level browser window or tab. Use driver.switchTo().window(handle) to change the driver's focus. Lesson →

X

XPath
A query language for XML/HTML documents. As a locator it can match on text, walk to parents and siblings, and combine conditions. Prefer relative expressions (//) over absolute paths copied from DevTools. Lesson →