All 50 questions
What waits does Selenium support, and when would you choose explicit waits over implicit waits?
Asked in 5 of 145 interviews · last asked Nov 10 · Concept · Mid-level
Show answer
Selenium supports implicit and explicit waits. An implicit wait sets how long element searches can retry before failing. An explicit wait waits for a specific condition, such as visibility or clickability. I choose explicit waits for dynamic pages because an element may exist but not yet be ready to use.
- Implicit waits apply across the session; explicit waits target specific conditions.
- In Java, FluentWait supports explicit waits with custom polling intervals and ignored exceptions.
- Avoid mixing implicit and explicit waits; this can cause unexpected delays.
- Playwright automatically checks action readiness before actions; its web-first assertions also retry.
What the interviewer checks: The interviewer checks whether you can handle timing issues without fixed sleeps or unreliable element checks.
Other ways it was asked
- “Can you explain the difference between explicit wait and implicit wait?”
- “What is the difference between an implicit wait and an explicit wait?”
- “What types of waits are available in Selenium?”
How can you avoid hard-coding an index in an XPath expression when it matches multiple elements?
Asked in 2 of 145 interviews · last asked Oct 26 · Tooling · Mid-level
Other ways it was asked
- “When using XPath, how would you avoid hard-coding an element index?”
What is Cypress?
Asked in 2 of 145 interviews · last asked Sep 15 · Concept · Junior
Show answer
Cypress is a tool for testing web applications with JavaScript or TypeScript. I would use it for end-to-end tests in a browser and for component tests. It offers automatic waiting, retries for queries and assertions, and tools to debug failures.
- Tests user actions and checks results in a real browser.
- Supports end-to-end testing and testing individual UI components.
- Automatic waiting reduces the need for fixed delays.
- It is not designed to test native mobile or desktop apps.
What the interviewer checks: The interviewer wants to know what Cypress tests and when you would choose it.
Other ways it was asked
- “When would you use Cypress?”
When should you use different Selenium locator strategies, and how do you choose them for automated tests?
Asked in 2 of 145 interviews · last asked Oct 28 · Tooling · Mid-level
Other ways it was asked
- “What locator strategies are available in test automation, and which do you recommend?”
What are Selenium locators, and when would you use them?
Asked in 2 of 145 interviews · last asked Oct 12 · Concept · Mid-level
Show answer
Selenium locators are rules used to find elements on a web page. I use them before clicking buttons, typing into fields, or checking results. I prefer stable, unique IDs or CSS selectors, and use XPath when element relationships make it useful.
- Selenium supports ID, name, class name, tag name, link text, partial link text, CSS selector, and XPath.
- Avoid fragile locators, such as absolute XPath paths that break when the page structure changes.
- Finding an element does not mean it is ready for interaction; use explicit waits when needed.
- Playwright offers role, label, text, and test ID locators; its actions automatically wait for relevant readiness checks.
What the interviewer checks: The interviewer checks whether you can choose reliable locators and understand how they support browser interactions.
Other ways it was asked
- “What are Selenium locators, when would you use them, and how does Playwright locate elements?”
- “Can you tell me what a locator is in Selenium?”
How many types of XPath are there, and what are the differences between them?
Asked in 2 of 145 interviews · last asked Jul 16 · Concept · Junior
Show answer
In automation testing, XPath is usually described in two forms: absolute and relative. Absolute XPath starts at the document root and commonly follows the full element path. Relative XPath starts from the current context node. Paths based on stable attributes are usually less fragile than full structural paths.
- Absolute XPath begins with / or // and starts at the document root.
- Relative XPath depends on the current context; .// searches within that context.
- Full structural paths can break when the page layout changes.
- Both forms can use attributes; stable attributes usually make locators easier to maintain.
CodeAbsolute: /html/body/form/input Relative: .//input[@id='email']What the interviewer checks: The interviewer checks whether you understand XPath starting points and can choose maintainable locators.
Other ways it was asked
- “What are the different types of XPath?”
What is the technical difference between Appium and Playwright?
Asked once · last asked Apr 13 · Concept · Mid-level
Other ways it was asked
- “What are the key component differences between Appium and Playwright?”
How would you use BrowserStack for cross-browser and cross-device testing?
Asked once · last asked Sep 21 · Tooling · Mid-level
How would you find all the links on a web page and identify which ones are broken?
Asked once · last asked Mar 24 · Tooling · Mid-level
In Selenium, how would you switch directly to the 48th window when there are 50 windows and no title or other identifying information?
Asked once · last asked Mar 24 · Tooling · Mid-level
How would you reliably test a feature embedded in a cross-origin iframe when you cannot access the iframe's code?
Asked once · last asked Apr 10 · Scenario · Senior
Will a Selenium script run with an older Chrome version, and what determines whether the browser and WebDriver versions are compatible?
Asked once · last asked Jul 14 · Scenario · Mid-level
Other ways it was asked
- “What happens if a Selenium script uses a browser version that is incompatible with its WebDriver version?”
Do Selenium browser and WebDriver versions need to match?
Asked once · last asked Jul 14 · Concept · Junior
Does Selenium 4 automatically upgrade the browser driver?
Asked once · last asked Jul 14 · Concept · Mid-level
In XPath, what is the difference between a single slash and a double slash?
Asked once · last asked Jul 16 · Concept · Junior
In XPath, what does starting a relative path from any element mean compared with starting from the document root?
Asked once · last asked Jul 16 · Concept · Junior
In Selenium tests, which type of assertion lets execution continue after an assertion failure?
Asked once · last asked Jul 16 · Concept · Junior
What do try, catch, and finally do in Selenium test code, and how do they relate to assertions?
Asked once · last asked Jul 16 · Concept · Junior
Other ways it was asked
- “What do try, catch, and finally do in Selenium, and how do they relate to assertions?”
How would you combine assertions with try/catch in a Selenium test so execution can continue when an element is not found?
Asked once · last asked Jul 16 · Scenario · Junior
Other ways it was asked
- “How can you use try/catch so a Selenium test can continue when an element is not found?”
What does `//` mean in an XPath selector?
Asked once · last asked Jul 22 · Concept · Junior
How would you write a stable automated test that detects horizontal overflow?
Asked once · last asked Aug 15 · Tooling · Mid-level
Other ways it was asked
- “After fixing a responsive overflow bug, what UI test would you add to prevent it from regressing, and what would the test assert?”
- “In a component test, how would you detect no horizontal overflow in a robust way, and how would you keep it stable across environments?”
Why is using a static WebDriver variable dangerous when running tests in parallel?
Asked once · last asked Sep 1 · Concept · Mid-level
How do you create reliable Selenium locators for elements whose attributes or values change dynamically?
Asked once · last asked Sep 1 · Scenario · Mid-level
Suppose clicking on a button opens a new tab, but sometimes the test switches to the wrong window. How do you make it reliable?
Asked once · last asked Sep 1 · Scenario · Mid-level
Why can mixing Cypress commands such as cy.get() with a native JavaScript Promise cause problems?
Asked once · last asked Sep 1 · Concept · Mid-level
Suppose your Selenium framework runs tests in parallel. Explain what ThreadLocal can help with and what problem it does not solve.
Asked once · last asked Sep 1 · Concept · Senior
How do you automate opening a URL in Chrome, scrolling to the footer, and subscribing to a newsletter using Selenium and Python?
Asked once · last asked Sep 17 · Tooling · Mid-level
How do you retrieve the text from a browser alert using Selenium?
Asked once · last asked Sep 18 · Tooling · Mid-level
How would you automate a search engine query using Selenium with Python?
Asked once · last asked Sep 18 · Tooling · Mid-level
Other ways it was asked
- “How would you automate a Google search using Selenium with Python?”
How do you write and use UI tests for an iOS application?
Asked once · last asked Oct 20 · Tooling · Mid-level
How do XPath axes such as parent, child, and sibling help you locate elements?
Asked once · last asked Oct 22 · Tooling · Mid-level
Why might you use JavaScript within Python-based Selenium or Playwright tests?
Asked once · last asked Oct 22 · Tooling · Mid-level
How would you adapt a test automation approach for mobile applications, and where could AI help?
Asked once · last asked Oct 26 · Scenario · Senior
When would you use JavaScriptExecutor in UI tests?
Asked once · last asked Oct 26 · Tooling · Mid-level
What types of waits can you use in test automation scripts, and when would you use each?
Asked once · last asked Oct 28 · Concept · Mid-level
What is the difference between an absolute XPath and a relative XPath?
Asked once · last asked Jul 16 · Concept · Junior
What criteria should you consider when creating a relative XPath?
Asked once · last asked Jul 16 · Concept · Junior
Other ways it was asked
- “What is a relative XPath?”
- “Can you give an example scenario for using a relative XPath?”
- “What criteria do we need to keep in mind while writing an XPath?”
Which tools can you use to find XPath expressions?
Asked once · last asked Sep 16 · Tooling · Junior
Other ways it was asked
- “Which tools do you use to find XPath?”
What is Selenium, and what is it used for in software testing?
Asked once · last asked Feb 26 · Concept · Junior
What are locators in web UI test automation, and what types are available?
Asked once · last asked Apr 22 · Concept · Junior
How do you assert the title of a web page?
Asked once · last asked Apr 22 · Tooling · Junior
How do you retrieve the CSS properties of an element?
Asked once · last asked Apr 22 · Tooling · Junior
How do you launch a browser and navigate to a URL using Selenium?
Asked once · last asked Jul 14 · Tooling · Junior
Other ways it was asked
- “Using Selenium, which method do you use to invoke a browser and navigate to a URL?”
What criteria should you consider when writing a relative locator in Selenium?
Asked once · last asked Jul 16 · Concept · Junior
In XPath, what do the parent and sibling relationships mean?
Asked once · last asked Jul 16 · Concept · Junior
Why should you avoid using Thread.sleep in Selenium tests?
Asked once · last asked Sep 1 · Concept · Junior
How do you find an XPath expression for a web page element?
Asked once · last asked Sep 16 · Tooling · Junior
Other ways it was asked
- “How do you find XPath?”
What are the advantages of using SelectorsHub?
Asked once · last asked Sep 16 · Tooling · Junior
Why do I need a WebDriver?
Asked once · last asked Sep 17 · Concept · Junior
What is the difference between Selenium and SoapUI?
Asked once · last asked Nov 18 · Concept · Junior
More Automation Testing interview questions
- All Automation Testing interview questions
- Automation Testing Basics and Strategy Interview Questions
- Test Automation Framework Design Interview Questions
- Playwright Interview Questions
- API and End-to-end Automation Testing Interview Questions
How this list is made
Every question here was asked by a real interviewer in a real job interview that a candidate ran MeetAssist in. After the call, the interviewer's questions are pulled from the transcript. Practice sessions, tests, exams and anything that was not a job interview are dropped.
Questions are rewritten so they make sense on their own: names of people, employers and clients are removed, and speech-to-text mistakes are fixed. Small talk, logistics and questions about one candidate's own résumé are left out. Rephrasings of the same question are merged, and the count is the number of different interviews it came up in.
The interviews come from candidates who use MeetAssist, so they lean towards software, data and AI roles: the shares describe these interviews, not every Automation Testing interview. Answers to the most asked questions are written and checked by an editor; a "common mistake" is shown only when reviews of real answers in these interviews show it, with the count.
145 interviews, 79 candidates, Jan 2026 to Nov 2026. Updated every month with new interviews.
Or add the Chrome extension