QA & Software Testing

Selenium interview questions (2026), by experience level

Not another copy-paste list — questions grouped by experience, answers written the way a senior wants to hear them, and the scenario questions that separate doers from list-readers.

Updated 17 June 2026

A quick honest warning before the questions: the internet is drowning in "Top 50 Selenium Interview Questions" lists, and most are useless — context-free trivia you can memorise without understanding, which is exactly what a good interviewer is trying to filter out. In 2026, Selenium interviews lean less on definitions and more on "have you actually built and maintained a framework?"

So this is organised by experience level, the answers are written the way a senior would want to hear them, and there's a section of scenario questions — the ones that separate people who've done the work from people who've read the listicles. Use it to understand, not memorise.

For freshers (0–2 years) — fundamentals done right

What are the different types of waits, and when do you use each?

Implicit wait sets a global timeout for finding elements; explicit wait (WebDriverWait + ExpectedConditions) waits for a specific condition on a specific element; fluent wait is an explicit wait with a configurable polling interval that can ignore specific exceptions. What interviewers want: prefer explicit waits for reliability, avoid mixing implicit and explicit (it can cause unpredictable wait times), and never use Thread.sleep() in real tests except for debugging.

What's the difference between findElement and findElements?

findElement returns the first matching element and throws NoSuchElementException if none is found; findElements returns a list of all matches and an empty list (no exception) if none are found. The follow-up: use findElements plus a size check to verify presence without risking an exception.

What are the main components of Selenium?

Selenium WebDriver (browser automation API), Selenium IDE (record-and-playback browser extension), and Selenium Grid (parallel/distributed execution). Selenium RC is legacy and removed — noting that you know it's deprecated is a small plus.

How do you locate elements in Selenium?

By id, name, className, tagName, linkText, partialLinkText, cssSelector, and xpath. The experience signal: prefer id and cssSelector for speed and stability; use xpath when you need to traverse the DOM by relationship, but avoid brittle absolute xpaths.

For experienced (2–5 years) — frameworks and structure

What is the Page Object Model and why use it?

A design pattern where each page (or component) is a class encapsulating its elements and the actions on them, keeping locators and logic separate from tests. Benefits: reusability, maintainability (a UI change updates one place), readability. Strong answers mention the Page Factory variant and keeping assertions out of page objects (they belong in tests).

How do you achieve data-driven testing?

Parameterise tests from an external source — TestNG @DataProvider, Excel/CSV/JSON, or a database — so the same test runs across many data sets. The maturity signal: separating test data from test logic so non-code changes don't touch the code.

How do you handle dynamic elements?

Use stable, attribute-based locators rather than auto-generated ids; explicit waits for the element's state; relative/contains xpath or CSS where attributes are partially stable. The honest answer acknowledges flaky locators are a top cause of flaky tests.

How do you run tests in parallel?

TestNG parallel execution (the parallel attribute in the suite XML) for thread-level parallelism, and Selenium Grid (or a cloud grid) for cross-browser/cross-machine. The probe they'll follow with: thread-safety — use ThreadLocal<WebDriver> so parallel threads don't share a driver instance.

For senior (5+ years) — architecture and judgment

A test fails ~1 in 10 runs. How do you approach it?

A flakiness question, really about method. Good answer: reproduce and categorise (timing/waits, test data, environment, or a real intermittent bug — don't assume it's the test). Check implicit/explicit wait conflicts, hard-coded sleeps, shared state between tests, and locator stability. Fix the root cause; don't just add retries to hide it. Note that blanket auto-retry masks real product bugs — a senior cares about that distinction.

How do you decide what to automate and what not to?

Automate stable, repetitive, high-value paths (regression, smoke, critical flows); don't automate one-off checks, rapidly-changing UI, or things where exploratory human testing is more valuable. The signal: automation has a maintenance cost, and a senior weighs ROI rather than chasing "100% automation."

How would you scale a framework for a large team?

Clear layering (tests, page objects, utilities, config), parallel execution and grid, reporting and logging, CI/CD integration, environment management, and conventions so many engineers can contribute without stepping on each other. Building exactly this is covered in manual to automation testing.

Selenium 4-specific (the freshness edge)

What's new in Selenium 4?

Relative locators (above, below, near, etc.), native Chrome DevTools Protocol (CDP) access, improved window/tab handling (newWindow), and full W3C WebDriver protocol standardisation (the old JSON Wire Protocol is gone). Knowing these signals you're current, not stuck on Selenium 3. (Verify the exact feature list against current Selenium docs at publish time.)

How to prepare beyond memorising

The single best preparation is to build a small framework and know your own projects cold. Interviewers can tell within two questions whether you've actually built something or just read about it — so be ready to talk through a framework you made, the decisions you took, and the problems you hit. After Selenium, API testing is the most common companion topic — see the API testing interview questions guide. Where it all fits is in the SDET roadmap.

Where CareerIntel fits (honestly)

Knowing the answers is half the battle — the other half is walking in knowing the company's stack and what they actually test, so the interview becomes a conversation instead of a quiz. That company-level preparation is part of what CareerIntel delivers.

Walk into interviews knowing the company cold

10 verified company deep-dives, scored target roles, and an ATS-ready resume — delivered in 4 business days, every claim checked against its source.

See a real sample

FAQ

What are the four components of Selenium?
Historically Selenium IDE, Selenium RC, Selenium WebDriver, and Selenium Grid — though RC is deprecated and removed, so modern Selenium is effectively WebDriver, IDE, and Grid.
What is the difference between findElement and findElements?
findElement returns the first match and throws NoSuchElementException if none exists; findElements returns a list of all matches and an empty list (no exception) if none exist.
What types of waits does Selenium support?
Implicit, explicit (WebDriverWait with ExpectedConditions), and fluent waits. Explicit waits are generally preferred for reliability; avoid mixing implicit and explicit.
Is Selenium still relevant in 2026 with Playwright around?
Yes — Selenium still appears in far more job postings and remains the most widely used web automation tool, even as Playwright grows. Knowing both is ideal (and pays a premium); Selenium remains the safer single choice for employability.

Keep reading

Sources

  1. Selenium — Official documentation (Selenium 4 features, waits, locators) (accessed 2026-06-17)
  2. TestDino — Test Automation Jobs Report 2026 (Selenium vs Playwright demand) (accessed 2026-06-17)