InterviewStack.io LogoInterviewStack.io

Selenium WebDriver and Advanced Concepts Questions

Expert-level knowledge of Selenium WebDriver including advanced locator strategies, handling dynamic elements, JavaScript execution, waits (implicit, explicit, fluent), browser window and tab management, and cross-browser compatibility. Understanding of Selenium architecture, limitations, and when to use alternatives.

HardTechnical
149 practiced
Design an algorithm or heuristic to identify flaky tests from CI historical run data containing fields: test_name, timestamp, status (pass/fail), duration, and failure_message. Describe features you would compute (pass rate, recent failure frequency, variance in run time, diversity of failure messages), how to compute a flakiness score, thresholds to surface candidates, and how to prioritize them for investigation.
EasyTechnical
73 practiced
Describe how to manage browser windows and tabs with Selenium WebDriver: how to open a new tab or window, how to get and switch between window handles, how to close a tab and restore focus, and common pitfalls such as stale handles or unexpected focus changes. Include what to do when a new window is opened asynchronously by the page.
EasyTechnical
82 practiced
Describe implicit waits, explicit waits, and fluent waits in Selenium WebDriver. Explain how each works (polling frequency, exceptions ignored), typical use cases and pitfalls such as test slowdown or masking synchronization issues, and give one practical example of when to prefer explicit wait over implicit wait.
HardTechnical
79 practiced
Case study: CI UI tests against staging rely on several third-party services which occasionally slow down or fail, causing intermittent false negatives. Propose a robust strategy to reduce false negatives while keeping test value: include service stubbing, contract testing, circuit breakers, test-level retries, feature flags, and how to categorize tests by dependency requirements.
MediumTechnical
99 practiced
A Selenium test passes locally but fails in CI with NoSuchElementException. Provide a systematic debugging plan to find the root cause, including how to reproduce the CI environment locally, what logs and artifacts to collect (page source, console logs, screenshots), how to check for headless or resolution differences, and steps to determine if the issue is timing, environment, or data-related.

Unlock Full Question Bank

Get access to hundreds of Selenium WebDriver and Advanced Concepts interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.