SoftwareTestPilot
40 Q&A

Selenium Interview Questions for 3 Years Experience (2026): 40+ Real Questions

40+ Selenium interview questions for QA engineers with 3 years experience — WebDriver, waits, framework design, parallel execution, Grid, CI and tricky scenario-based questions.

  • 4 min read
  • Difficulty: Mixed (Easy → Hard)
  • Freshers → Experienced
  • Updated July 17, 2026
  • Avinash Kamble
0 / 40 reviewed
0%

1. WebDriver Core (Refresher)

Easy Very Common 1 minQ1 / 40

Q1.Explain Selenium 4 architecture.

Asked byInfosysWiproCapgeminiTCS
Why interviewers ask this

Open-ended "explain Selenium 4 architecture" prompts test how you structure a technical answer under pressure. Panels look for a clear opening definition, one worked example, and a closing sentence on the pitfall they were about to ask about next.

Detailed explanation

The client sends commands over the W3C WebDriver protocol directly to the browser driver (chromedriver, geckodriver). No JSON Wire Protocol bridge, no Selenium Server in the local flow.

Tips to remember
  • Use a 3-part frame for Selenium 4 architecture: what it is → how it works → one gotcha you've hit in a real Selenium project.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise Selenium 4 architecture cleanly.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
RelatedQ3
Easy Very Common 1 minQ2 / 40

Q2.What's new in Selenium 4 vs 3?

Asked byIBMInfosysWiproCapgemini
Why interviewers ask this

Comparison questions like this test whether you understand What's new in Selenium 4 vs 3 at a design level — not just that both exist, but when to pick one over the other. Panels use it to see if you can defend a trade-off with a real project example.

Detailed explanation

W3C standardisation, relative locators, BiDi support, improved Grid 4 (Docker/K8s native), built-in CDP access.

Tips to remember
  • Structure the answer as a small table in your head: dimension, option A, option B — and close with "I'd pick X when Y".
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise What's new in Selenium 4 vs 3 cleanly.
  • Mention pinned browser images and cleanup of containers between runs — panels look for CI cost awareness.
Medium Very Common 1 minQ3 / 40

Q3.Difference between findElement and findElements?

Asked byCapgeminiTCSAmazonDeloitte
Why interviewers ask this

Comparison questions like this test whether you understand findElement vs findElements at a design level — not just that both exist, but when to pick one over the other. Panels use it to see if you can defend a trade-off with a real project example.

Detailed explanation

findElement throws NoSuchElementException when nothing matches; findElements returns an empty list.

Tips to remember
  • Structure the answer as a small table in your head: dimension, option A, option B — and close with "I'd pick X when Y".
  • Be ready to whiteboard the findElement vs findElements snippet live — panels often ask you to type it, not describe it.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Confidence check

If you can confidently answer the WebDriver Core (Refresher) questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

2. Locators & Page Design

Medium Very Common 1 minQ4 / 40

Q4.Best locator strategy?

Asked byWiproCapgeminiTCSAmazon
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on Best locator strategy and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation

Stable test IDs (data-testid) > CSS > XPath. Avoid index-based XPath; it breaks on minor DOM changes.

Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on Best locator strategy over textbook wording.
  • Be ready to whiteboard the Best locator strategy snippet live — panels often ask you to type it, not describe it.
  • Say explicitly that you prefer CSS/relative locators and only fall back to XPath for text or axes — panels grade locator hygiene here.
Medium Very Common 1 minQ5 / 40

Q5.Relative locators example?

Asked byAmazonDeloitteCognizantIBM
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on Relative locators example and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation
WebElement email = driver.findElement(
  with(By.tagName("input")).below(By.id("label-email"))
);
Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on Relative locators example over textbook wording.
  • Be ready to whiteboard the Relative locators example snippet live — panels often ask you to type it, not describe it.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Medium Very Common 1 minQ6 / 40

Q6.How do you handle dynamic elements?

Asked byTCSAmazonDeloitteCognizant
Why interviewers ask this

Hands-on "how would you handle dynamic elements" questions reveal whether you've actually shipped Selenium code or only read about it. Interviewers listen for concrete steps, the tools you'd reach for first, and the failure mode you'd guard against.

Detailed explanation

Wait on a stable attribute, use contains() / starts-with(), or anchor on a nearby stable element with a relative locator.

Tips to remember
  • Walk through handle dynamic elements as numbered steps and call out the tool, command, or API used at each step.
  • Be ready to whiteboard the handle dynamic elements snippet live — panels often ask you to type it, not describe it.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Confidence check

If you can confidently answer the Locators & Page Design questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

3. Waits & Synchronisation

Medium Very Common 1 minQ7 / 40

Q7.Implicit vs Explicit vs Fluent wait?

Asked byCognizantIBMInfosysWipro
Why interviewers ask this

Comparison questions like this test whether you understand Implicit vs Explicit vs Fluent wait at a design level — not just that both exist, but when to pick one over the other. Panels use it to see if you can defend a trade-off with a real project example.

Detailed explanation

Implicit: global, applies to every findElement. Explicit: condition-based per call (WebDriverWait). Fluent: explicit + polling interval + ignored exceptions. Never mix implicit and explicit — Selenium docs warn against it.

Tips to remember
  • Structure the answer as a small table in your head: dimension, option A, option B — and close with "I'd pick X when Y".
  • Be ready to whiteboard the Implicit vs Explicit vs Fluent wait snippet live — panels often ask you to type it, not describe it.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Medium Very Common 1 minQ8 / 40

Q8.Common ExpectedConditions?

Asked byDeloitteCognizantIBMInfosys
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on Common ExpectedConditions and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation

elementToBeClickable, visibilityOfElementLocated, presenceOfElementLocated, invisibilityOf, textToBePresentInElement.

Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on Common ExpectedConditions over textbook wording.
  • Be ready to whiteboard the Common ExpectedConditions snippet live — panels often ask you to type it, not describe it.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Medium Very Common 1 minQ9 / 40

Q9.How do you handle Ajax-heavy pages?

Asked byInfosysWiproCapgeminiTCS
Why interviewers ask this

Hands-on "how would you handle Ajax-heavy pages" questions reveal whether you've actually shipped Selenium code or only read about it. Interviewers listen for concrete steps, the tools you'd reach for first, and the failure mode you'd guard against.

Detailed explanation

Wait on a network-completion signal (a spinner disappearing, a specific element appearing) — never Thread.sleep.

Tips to remember
  • Walk through handle Ajax-heavy pages as numbered steps and call out the tool, command, or API used at each step.
  • Be ready to whiteboard the handle Ajax-heavy pages snippet live — panels often ask you to type it, not describe it.
  • Call out test isolation and shared-state risk (data, sessions, ports) before you talk about worker counts.
Confidence check

If you can confidently answer the Waits & Synchronisation questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

4. Framework Design (Hot Topic at 3 Years)

Medium Very Common 1 minQ10 / 40

Q10.Walk me through your framework.

Asked byIBMInfosysWiproCapgemini
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on Walk me through your framework and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation

Expected answer: language + runner (Java + TestNG/JUnit5), POM + PageFactory or component-based pages, config via .properties / .yaml, data via JSON/Excel, parallel execution, Allure/ExtentReports, Maven/Gradle + GitHub Actions/Jenkins.

Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on Walk me through your framework over textbook wording.
  • Be ready to whiteboard the Walk me through your framework snippet live — panels often ask you to type it, not describe it.
  • Add one sentence on what does NOT belong in a page object (assertions, test data) — that boundary is what separates mid from senior answers.
Easy Very Common 1 minQ11 / 40

Q11.POM vs Screenplay vs Component pattern?

Asked byCapgeminiTCSAmazonDeloitte
Why interviewers ask this

Comparison questions like this test whether you understand POM vs Screenplay vs Component pattern at a design level — not just that both exist, but when to pick one over the other. Panels use it to see if you can defend a trade-off with a real project example.

Detailed explanation

POM: classic, one class per page. Screenplay: actor-centric, scales for complex flows. Component: pages composed of reusable widgets — best for modern SPAs.

Tips to remember
  • Structure the answer as a small table in your head: dimension, option A, option B — and close with "I'd pick X when Y".
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise POM vs Screenplay vs Component pattern cleanly.
  • Add one sentence on what does NOT belong in a page object (assertions, test data) — that boundary is what separates mid from senior answers.
Easy Very Common 1 minQ12 / 40

Q12.How do you handle test data?

Asked byWiproCapgeminiTCSAmazon
Why interviewers ask this

Hands-on "how would you handle test data" questions reveal whether you've actually shipped Selenium code or only read about it. Interviewers listen for concrete steps, the tools you'd reach for first, and the failure mode you'd guard against.

Detailed explanation

External JSON/Excel for static data, faker libraries for dynamic data, API setup/teardown for state — never hard-code.

Tips to remember
  • Walk through handle test data as numbered steps and call out the tool, command, or API used at each step.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise handle test data cleanly.
  • Explain setup/teardown ordering and what runs per-test vs per-suite; ordering mistakes are the follow-up question.
Easy Very Common 1 minQ13 / 40

Q13.How do you make tests independent?

Asked byAmazonDeloitteCognizantIBM
Why interviewers ask this

Hands-on "how would you make tests independent" questions reveal whether you've actually shipped Selenium code or only read about it. Interviewers listen for concrete steps, the tools you'd reach for first, and the failure mode you'd guard against.

Detailed explanation

Each test sets up its own data via APIs, runs in its own browser session, and cleans up after itself.

Tips to remember
  • Walk through make tests independent as numbered steps and call out the tool, command, or API used at each step.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise make tests independent cleanly.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Confidence check

If you can confidently answer the Framework Design (Hot Topic at 3 Years) questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

5. Parallel Execution & Grid

Medium Very Common 1 minQ14 / 40

Q14.How do you run tests in parallel?

Asked byTCSAmazonDeloitteCognizant
Why interviewers ask this

Hands-on "how would you run tests in parallel" questions reveal whether you've actually shipped Selenium code or only read about it. Interviewers listen for concrete steps, the tools you'd reach for first, and the failure mode you'd guard against.

Detailed explanation

TestNG: parallel="methods" in suite XML. JUnit 5: junit.jupiter.execution.parallel.enabled=true. Ensure WebDriver is thread-local (ThreadLocal<WebDriver>).

Tips to remember
  • Walk through run tests in parallel as numbered steps and call out the tool, command, or API used at each step.
  • Be ready to whiteboard the run tests in parallel snippet live — panels often ask you to type it, not describe it.
  • Call out test isolation and shared-state risk (data, sessions, ports) before you talk about worker counts.
Easy Very Common 1 minQ15 / 40

Q15.What is Selenium Grid 4?

Asked byCognizantIBMInfosysWipro
Why interviewers ask this

Interviewers open with "Selenium Grid 4" to confirm you can define the concept in one crisp line before going deeper. In Selenium rounds this filters out candidates who only remember syntax and can't articulate the underlying idea to a non-expert teammate.

Detailed explanation

Distributed execution — Hub + Nodes (or fully distributed). Supports Docker and Kubernetes deployment out of the box.

Tips to remember
  • Open with a one-sentence definition of Selenium Grid 4, then a concrete Selenium example — never start with history or theory.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise Selenium Grid 4 cleanly.
  • Mention pinned browser images and cleanup of containers between runs — panels look for CI cost awareness.
Easy Common 1 minQ16 / 40

Q16.How do you scale Grid?

Asked byDeloitteCognizantIBMInfosys
Why interviewers ask this

Hands-on "how would you scale Grid" questions reveal whether you've actually shipped Selenium code or only read about it. Interviewers listen for concrete steps, the tools you'd reach for first, and the failure mode you'd guard against.

Detailed explanation

Dockerised nodes, autoscaled on Kubernetes, or hosted on BrowserStack/Sauce Labs. Match concurrency to your CI runner count.

Tips to remember
  • Walk through scale Grid as numbered steps and call out the tool, command, or API used at each step.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise scale Grid cleanly.
  • Mention pinned browser images and cleanup of containers between runs — panels look for CI cost awareness.
Confidence check

If you can confidently answer the Parallel Execution & Grid questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

6. Flaky Tests (Every Interview Asks)

Easy Common 1 minQ17 / 40

Q17.How do you debug a flaky test?

Asked byInfosysWiproCapgeminiTCS
Why interviewers ask this

Hands-on "how would you debug a flaky test" questions reveal whether you've actually shipped Selenium code or only read about it. Interviewers listen for concrete steps, the tools you'd reach for first, and the failure mode you'd guard against.

Detailed explanation

Reproduce locally with retries off, capture screenshot + HTML snapshot + browser console + network HAR on failure, check for race conditions and bad waits, fix root cause — never blindly retry.

Tips to remember
  • Walk through debug a flaky test as numbered steps and call out the tool, command, or API used at each step.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise debug a flaky test cleanly.
  • Quote a real flake-rate number before and after your fix; measured outcomes score far higher than "we added retries".
Easy Common 1 minQ18 / 40

Q18.When is retry acceptable?

Asked byIBMInfosysWiproCapgemini
Why interviewers ask this

Timing questions like this check whether you understand the trade-offs of retry acceptable. Interviewers want to hear the specific signals in a project that make you pick it over the alternative, plus one case where it's the wrong choice.

Detailed explanation

Only for known-environmental flakes (network blips). Track retry counts; if a test retries >3% of runs, it's broken, not flaky.

Tips to remember
  • Answer in the form "Use retry acceptable when …, avoid it when …" so the interviewer hears both sides in one breath.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise retry acceptable cleanly.
  • Quote a real flake-rate number before and after your fix; measured outcomes score far higher than "we added retries".
Easy Common 1 minQ19 / 40

Q19.How do you prevent flakiness?

Asked byCapgeminiTCSAmazonDeloitte
Why interviewers ask this

Hands-on "how would you prevent flakiness" questions reveal whether you've actually shipped Selenium code or only read about it. Interviewers listen for concrete steps, the tools you'd reach for first, and the failure mode you'd guard against.

Detailed explanation
  • Stable selectors (data-testid).
  • Explicit waits on real signals.
  • API-driven setup, not UI clicks.
  • One browser session per test.
  • Quarantine flaky tests in a separate suite.
Tips to remember
  • Walk through prevent flakiness as numbered steps and call out the tool, command, or API used at each step.
  • Group the prevent flakiness points into 2–3 buckets so you can recall them under pressure without missing one.
  • State that you never mix wait strategies and never use a hard sleep, then give the timeout value you actually run in CI.
Confidence check

If you can confidently answer the Flaky Tests (Every Interview Asks) questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

7. Advanced Scenarios

Medium Common 1 minQ20 / 40

Q20.How do you handle file uploads?

Asked byWiproCapgeminiTCSAmazon
Why interviewers ask this

Hands-on "how would you handle file uploads" questions reveal whether you've actually shipped Selenium code or only read about it. Interviewers listen for concrete steps, the tools you'd reach for first, and the failure mode you'd guard against.

Detailed explanation

Native sendKeys on the file input — no AutoIT/Robot needed for simple inputs.

Tips to remember
  • Walk through handle file uploads as numbered steps and call out the tool, command, or API used at each step.
  • Be ready to whiteboard the handle file uploads snippet live — panels often ask you to type it, not describe it.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Easy Common 1 minQ21 / 40

Q21.File download verification?

Asked byAmazonDeloitteCognizantIBM
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on File download verification and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation

Configure browser to a known download dir, then assert the file exists with the expected size/hash.

Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on File download verification over textbook wording.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise File download verification cleanly.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Medium Common 1 minQ22 / 40

Q22.Handling browser auth pop-ups?

Asked byTCSAmazonDeloitteCognizant
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on Handling browser auth pop-ups and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation

Pass credentials in the URL (https://user:pass@host) or use Chrome DevTools Protocol (Network.setExtraHTTPHeaders) in Selenium 4.

Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on Handling browser auth pop-ups over textbook wording.
  • Be ready to whiteboard the Handling browser auth pop-ups snippet live — panels often ask you to type it, not describe it.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Medium Common 1 minQ23 / 40

Q23.Handling multiple windows/tabs?

Asked byCognizantIBMInfosysWipro
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on Handling multiple windows/tabs and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation

Capture driver.getWindowHandles(), iterate, switchTo().window(handle).

Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on Handling multiple windows/tabs over textbook wording.
  • Be ready to whiteboard the Handling multiple windows/tabs snippet live — panels often ask you to type it, not describe it.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Medium Common 1 minQ24 / 40

Q24.Handling iframes?

Asked byDeloitteCognizantIBMInfosys
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on Handling iframes and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation

driver.switchTo().frame(...) — by index, name or WebElement. Always switch back with defaultContent().

Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on Handling iframes over textbook wording.
  • Be ready to whiteboard the Handling iframes snippet live — panels often ask you to type it, not describe it.
  • Finish by saying you always return to the default content after frame work — forgetting that is the classic failure this question hunts for.
Medium Common 1 minQ25 / 40

Q25.Handling shadow DOM?

Asked byInfosysWiproCapgeminiTCS
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on Handling shadow DOM and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation

Selenium 4: element.getShadowRoot().findElement(By.cssSelector(...)).

Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on Handling shadow DOM over textbook wording.
  • Be ready to whiteboard the Handling shadow DOM snippet live — panels often ask you to type it, not describe it.
  • Name the exact API you'd use to pierce shadow roots and mention that closed shadow roots need a test hook from developers.
Medium Common 1 minQ26 / 40

Q26.CDP usage example?

Asked byIBMInfosysWiproCapgemini
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on CDP usage example and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation
DevTools dt = ((ChromeDriver) driver).getDevTools();
dt.createSession();
dt.send(Network.enable(...));
Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on CDP usage example over textbook wording.
  • Be ready to whiteboard the CDP usage example snippet live — panels often ask you to type it, not describe it.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Confidence check

If you can confidently answer the Advanced Scenarios questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

8. API + DB Validation in UI Tests

Easy Common 1 minQ27 / 40

Q27.Why mix API calls inside Selenium tests?

Asked byCapgeminiTCSAmazonDeloitte
Why interviewers ask this

"Why" questions on mix API calls inside Selenium tests probe your reasoning, not your memory. Strong candidates connect the choice to a business or reliability outcome — flaky tests, slower feedback loop, or missed defects — instead of parroting a rule.

Detailed explanation

Faster setup, deterministic state, fewer flaky UI steps. Use RestAssured/RestSharp for setup/teardown — see our RestSharp guide and the API testing questions.

Tips to remember
  • Tie the "why" for mix API calls inside Selenium tests back to a measurable outcome — flake rate, execution time, defect leakage — instead of an opinion.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise mix API calls inside Selenium tests cleanly.
  • Quote a real flake-rate number before and after your fix; measured outcomes score far higher than "we added retries".
Easy Common 1 minQ28 / 40

Q28.DB validation pattern?

Asked byWiproCapgeminiTCSAmazon
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on DB validation pattern and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation

Use JDBC/JPA to query the DB after a UI action and assert state — but keep it for critical flows only.

Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on DB validation pattern over textbook wording.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise DB validation pattern cleanly.
  • Say how you clean up or roll back the data you touch — DB questions are really data-hygiene questions.
Confidence check

If you can confidently answer the API + DB Validation in UI Tests questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

9. CI/CD Ownership

Easy Common 1 minQ29 / 40

Q29.How do you run Selenium in CI?

Asked byAmazonDeloitteCognizantIBM
Why interviewers ask this

Hands-on "how would you run Selenium in CI" questions reveal whether you've actually shipped Selenium code or only read about it. Interviewers listen for concrete steps, the tools you'd reach for first, and the failure mode you'd guard against.

Detailed explanation

Headless Chrome/Firefox in GitHub Actions or Jenkins, Maven/Gradle build, results published as JUnit XML + Allure HTML artifact, Slack/Teams notifications on failure.

Tips to remember
  • Walk through run Selenium in CI as numbered steps and call out the tool, command, or API used at each step.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise run Selenium in CI cleanly.
  • Describe the pipeline stage order and what makes the build fail — a vague "we run tests in CI" answer stalls here.
Medium Occasional 1 minQ30 / 40

Q30.How do you trigger smoke vs regression?

Asked byTCSAmazonDeloitteCognizant
Why interviewers ask this

Comparison questions like this test whether you understand trigger smoke vs regression at a design level — not just that both exist, but when to pick one over the other. Panels use it to see if you can defend a trade-off with a real project example.

Detailed explanation

Tag-based execution (TestNG groups / JUnit 5 @Tag), separate pipeline jobs per tag, regression nightly + smoke on every PR.

Tips to remember
  • Structure the answer as a small table in your head: dimension, option A, option B — and close with "I'd pick X when Y".
  • Be ready to whiteboard the trigger smoke vs regression snippet live — panels often ask you to type it, not describe it.
  • Describe the pipeline stage order and what makes the build fail — a vague "we run tests in CI" answer stalls here.
Confidence check

If you can confidently answer the CI/CD Ownership questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

10. Scenario-Based Questions (The Real Differentiator)

Easy Occasional 1 minQ31 / 40

Q31.Your suite runs 2 hours. Reduce to 30 minutes.

Asked byCognizantIBMInfosysWipro
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on Your suite runs 2 hours. Reduce to 30 minutes and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation

Profile slowest tests, parallelise across 4–8 threads, move setup to APIs, kill UI smoke duplication, shard across CI runners.

Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on Your suite runs 2 hours. Reduce to 30 minutes over textbook wording.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise Your suite runs 2 hours. Reduce to 30 minutes cleanly.
  • Call out test isolation and shared-state risk (data, sessions, ports) before you talk about worker counts.
Easy Occasional 1 minQ32 / 40

Q32.Tests pass locally, fail in CI.

Asked byDeloitteCognizantIBMInfosys
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on Tests pass locally, fail in CI and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation

Browser version mismatch, headless rendering quirks, timezone/locale, missing env vars, race conditions exposed by slower CI machines. Reproduce with the exact CI Docker image.

Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on Tests pass locally, fail in CI over textbook wording.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise Tests pass locally, fail in CI cleanly.
  • Mention pinned browser images and cleanup of containers between runs — panels look for CI cost awareness.
Easy Occasional 1 minQ33 / 40

Q33.Manager wants 100% automation coverage. Push back.

Asked byInfosysWiproCapgeminiTCS
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on Manager wants 100% automation coverage. Push back and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation

Explain ROI: automate stable, high-value flows; keep exploratory and visual checks manual. 100% is a vanity metric.

Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on Manager wants 100% automation coverage. Push back over textbook wording.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise Manager wants 100% automation coverage. Push back cleanly.
  • Bring numbers: what percentage sits at unit/API/UI and how long the suite takes — strategy answers need a shape.
Medium Occasional 1 minQ34 / 40

Q34.New dev keeps breaking your locators.

Asked byIBMInfosysWiproCapgemini
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on New dev keeps breaking your locators and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation

Educate on data-testid, add a PR check that fails if locators change without coordination, contribute the testids yourself.

Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on New dev keeps breaking your locators over textbook wording.
  • Be ready to whiteboard the New dev keeps breaking your locators snippet live — panels often ask you to type it, not describe it.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Easy Occasional 1 minQ35 / 40

Q35.CI cost is too high.

Asked byCapgeminiTCSAmazonDeloitte
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on CI cost is too high and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation

Run full regression nightly, smoke on PRs, parallelise, use spot instances or BrowserStack quota smartly.

Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on CI cost is too high over textbook wording.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise CI cost is too high cleanly.
  • Call out test isolation and shared-state risk (data, sessions, ports) before you talk about worker counts.
Confidence check

If you can confidently answer the Scenario-Based Questions (The Real Differentiator) questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

11. Behavioural & Ownership Questions

Easy Occasional 1 minQ36 / 40

Q36.Tell me about a hard bug you found through automation.

Asked byWiproCapgeminiTCSAmazon
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on Tell me about a hard bug you found through automation and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation
Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on Tell me about a hard bug you found through automation over textbook wording.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise Tell me about a hard bug you found through automation cleanly.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Easy Occasional 1 minQ37 / 40

Q37.How do you onboard a new tester to your framework?

Asked byAmazonDeloitteCognizantIBM
Why interviewers ask this

Hands-on "how would you onboard a new tester to your framework" questions reveal whether you've actually shipped Selenium code or only read about it. Interviewers listen for concrete steps, the tools you'd reach for first, and the failure mode you'd guard against.

Detailed explanation
Tips to remember
  • Walk through onboard a new tester to your framework as numbered steps and call out the tool, command, or API used at each step.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise onboard a new tester to your framework cleanly.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Easy Occasional 1 minQ38 / 40

Q38.How do you decide what NOT to automate?

Asked byTCSAmazonDeloitteCognizant
Why interviewers ask this

Hands-on "how would you decide what NOT to automate" questions reveal whether you've actually shipped Selenium code or only read about it. Interviewers listen for concrete steps, the tools you'd reach for first, and the failure mode you'd guard against.

Detailed explanation
Tips to remember
  • Walk through decide what NOT to automate as numbered steps and call out the tool, command, or API used at each step.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise decide what NOT to automate cleanly.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Easy Occasional 1 minQ39 / 40

Q39.How do you keep your framework current?

Asked byCognizantIBMInfosysWipro
Why interviewers ask this

Hands-on "how would you keep your framework current" questions reveal whether you've actually shipped Selenium code or only read about it. Interviewers listen for concrete steps, the tools you'd reach for first, and the failure mode you'd guard against.

Detailed explanation
Tips to remember
  • Walk through keep your framework current as numbered steps and call out the tool, command, or API used at each step.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise keep your framework current cleanly.
  • Bring up explicit waits, Page Object Model, or grid execution — the three areas Selenium panels probe next.
Easy Occasional 1 minQ40 / 40

Q40.What would you change if you started the framework today?

Asked byDeloitteCognizantIBMInfosys
Why interviewers ask this

This Selenium question checks whether you can go beyond textbook knowledge on What would you change if you started the framework today and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.

Detailed explanation

For all of these, structure answers as Situation → Action → Result → Learning. Rehearse them out loud in the AI Mock Interview — reading the answer isn't enough.

Tips to remember
  • Anchor the answer in a real Selenium project — panels reward specificity on What would you change if you started the framework today over textbook wording.
  • Keep the answer to 60–90 seconds; anything longer signals you can't summarise What would you change if you started the framework today cleanly.
  • Say when you'd mock versus hit the real dependency; unconditional mocking is a red flag for integration coverage.
RelatedQ38
Confidence check

If you can confidently answer the Behavioural & Ownership Questions questions above, you're well prepared for this section of your interview. Move on, or rehearse the trickier ones aloud with our AI mock interviewer.

Quick revision

  1. Q1: Explain Selenium 4 architecture. — The client sends commands over the W3C WebDriver protocol directly to the browser driver (chromedriver, geckodriver).
  2. Q2: What's new in Selenium 4 vs 3 — W3C standardisation, relative locators, BiDi support, improved Grid 4 (Docker/K8s native), built-in CDP access.
  3. Q3: Difference between findElement and findElements — findElement throws NoSuchElementException when nothing matches; findElements returns an empty list.
  4. Q4: Best locator strategy — Stable test IDs ( data-testid ) &gt; CSS &gt; XPath.
  5. Q5: Relative locators example — WebElement email = driver.findElement( with(By.tagName("input")).below(By.id("label-email")) );

Frequently asked questions

1.What level of Selenium questions are asked at 3 years experience?
Mid-level: framework design, parallel execution, flaky-test debugging, CI ownership and scenario-based questions. Definitions of WebDriver or 'what is XPath' rarely come up beyond the first 2 minutes.
2.Is Selenium still worth learning in 2026 over Playwright?
Yes for enterprise, BFSI and large existing test suites. Playwright dominates new SaaS projects, but Selenium remains the most-asked tool in 60%+ of mid-level QA listings on LinkedIn India and the US.
3.How do I prepare for scenario-based Selenium questions?
Practise framing answers as Situation → Action → Result → Learning. Use real incidents from your job and rehearse out loud in a mock interview — reading the answer is not enough.
4.What's the typical SDET 2 / mid-level Selenium salary in 2026?
India: ₹14–24 LPA. US: $115–145k. Live numbers by role and city: see /salaries.
5.Do I need to know Selenium Grid at 3 years?
You need to explain it conceptually, how Grid 4 works with Docker/K8s, and when you'd use it vs cloud providers like BrowserStack. Hands-on Grid setup is a plus, not mandatory.
6.How many coding questions are asked in a Selenium SDET interview?
Typically 1–2 easy/medium DSA problems (arrays, strings, hashmaps) plus 1 Selenium-code-on-the-spot question like 'write a method to retry a click on stale element'.

Was this article helpful?

Cluster · QA Career

More from QA Interview Questions

Behavioral, framework, coding — full interview prep.

Pillar guide · 11 articles
More in this cluster
From the QA Career pillar
Topic mapConcepts · Tools · People · Standards

Related concepts, tools & standards around Selenium

A quick reference of the people, companies, frameworks and technologies most often mentioned alongside Selenium in real QA teams — useful when you're mapping a learning path, preparing for interviews, or scoping a new project.

Core testing concepts
Prompt Engineering for QALLM-Assisted Test GenerationTest PyramidShift-Left TestingBehavior-Driven DevelopmentTest-Driven DevelopmentPage Object ModelContract TestingExploratory TestingRisk-Based Testing
Testing tools
Programming languages
JavaPythonJavaScriptTypeScriptC#SQL
Certifications worth knowing
ISTQB Foundation LevelISTQB Advanced — Test AnalystISTQB Agile TesterCertified Selenium ProfessionalAWS Certified DevOps EngineerCertified ScrumMaster (CSM)
Companies hiring for this skill
GoogleMicrosoftAmazonMetaNetflixAtlassianThoughtWorksInfosysTCSWipro

Key takeaways

  • Master the fundamentals before tackling advanced Selenium scenarios.
  • Always explain trade-offs — interviewers reward judgement, not memorisation.
  • Use real project examples; generic answers blend in.
  • Practice answers out loud — written prep doesn't transfer to live rounds.
  • Revise the 30-second cheat sheet the night before your interview.
  • Keep one strong scenario story ready for every section above.

Selenium QA jobs hiring now

Live, indexable Selenium openings — updated daily in Jobs Radar.

Browse all QA jobs on Jobs Radar

Loading current openings…

Home

Discussion

Ask a question, share your experience, or correct us. Be kind — real people are reading.