← Back to blog

Selenium interview questions and answers

Selenium interview questions and answers — cover from Greenroom, the AI mock interviewer

Selenium is the standard for browser test automation, and its interviews test WebDriver fundamentals, locating elements, the waits that make tests stable, and the Page Object Model that makes them maintainable. Essential for QA automation and SDET roles. Here are the Selenium interview questions that actually get asked. (See also our QA tester guide.)

WebDriver & locators

Waits (the stability key)

Selenium interview topics — WebDriver, locators, waits, Page Object Model
Selenium rounds test locators, waits and stable test design (Page Object Model).

Framework & advanced

The core truth: Selenium interviews reward writing stable, maintainable tests — proper explicit waits over Thread.sleep, robust locators, and the Page Object Model. Anyone can automate a click; building tests that don't flake is the signal.

How to prepare

Selenium rounds probe waits, locators, and framework design verbally. Practise explaining explicit waits and the Page Object Model out loud. Greenroom runs spoken technical interviews that follow up on your reasoning. Pair it with our QA tester guide.

Frequently asked questions

What are the most common Selenium interview questions?

Common Selenium questions cover WebDriver and how it works, locators (id, name, xpath, cssSelector and which to prefer), absolute vs relative XPath, findElement vs findElements, implicit vs explicit vs fluent waits, why Thread.sleep is bad, handling dynamic elements and flaky tests, the Page Object Model, handling alerts/frames/windows/dropdowns, data-driven frameworks, and Selenium Grid.

What is the difference between implicit and explicit waits in Selenium?

An implicit wait sets a global timeout that applies to all element lookups, polling for an element to appear before throwing an exception. An explicit wait waits for a specific condition on a specific element (like visibility or clickability) up to a timeout, giving fine-grained control. Explicit waits are preferred for dynamic elements because they wait for the right condition rather than a blanket timeout, making tests more reliable.

What is the Page Object Model in Selenium?

The Page Object Model (POM) is a design pattern where each web page is represented by a class that encapsulates its elements and the actions on them. Tests interact with these page objects instead of raw locators, so when the UI changes you update one place rather than every test. POM improves maintainability, reduces duplication, and makes tests more readable — a frequent interview topic.

How should I prepare for a Selenium interview?

Focus on writing stable, maintainable tests: proper explicit waits over Thread.sleep, robust locators, handling dynamic elements and flaky tests, and the Page Object Model for maintainability. Practise explaining waits and POM out loud with a voice-based mock interview that follows up, since Selenium rounds reward test-design judgment over just automating clicks.

Selenium rounds reward stable, maintainable test design, out loud. Greenroom runs spoken technical interviews that follow up on your reasoning. Free to start.