← All interview questions

Skill Zuno · skillzunos.com · Fullstack Pro

Selenium interview questions

Prepare for Selenium interviews on Skill Zuno. This practice book covers Selenium interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.

Open Selenium on Skill Zuno

Also see the Selenium tutorial.

Selenium is the long-standing open-source tool for automating web browsers, used mainly for end-to-end testing. Selenium WebDriver controls Chrome, Firefox, Edge and Safari through the W3C WebDriver protocol, with bindings for Java, Python, C#, JavaScript and more, and Selenium Grid runs tests in parallel across machines. Interviews cover locators, waits, the page object model, Grid and reducing flaky tests.

Sample Selenium interview questions

What is the difference between implicit and explicit waits?

An implicit wait sets a global timeout for finding elements. An explicit wait, with WebDriverWait and expected conditions, waits for a specific condition, such as an element being clickable. Do not mix them.

Should you use XPath or CSS selectors?

Prefer IDs, data-test attributes or CSS selectors: they are faster and easier to read. XPath is useful when you must match by text or move up to a parent element.

What is the page object model?

A design pattern where each page or component is a class exposing user actions, such as login(user, password), and hiding locators. Tests stay readable and locator changes happen in one place.

What causes StaleElementReferenceException?

The element was found, but the page re-rendered and replaced it in the DOM. Locate the element again after the change, or wait for the new element.

What is Selenium Grid?

A hub-and-node system that runs tests on remote machines with different browsers and operating systems in parallel, which shortens test runs and broadens coverage.

What you can practice

  • Selenium interview questions for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • Fullstack Pro topics alongside Selenium on skillzunos.com

More Fullstack Pro interview questions

All interview questions