Selenium practice
Selenium quizzes with instant explanations
Pick an answer and the explanation appears immediately — including the mistake each wrong option represents and how to phrase it in an interview.
0%0/0 correct
Quiz accuracy
15 questions ready in this set.
Q1LocatorsEasy
Which locator should you reach for first when it is available?
Q2LocatorsMedium
What does this CSS selector match?
java
1driver.findElements(By.cssSelector("ul.cart > li:nth-of-type(2)"));Q3WaitsEasy
Why should implicit and explicit waits not be mixed?
Q4WaitsMedium
Which condition is correct for a button that exists in the DOM but is still disabled?
java
1WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));Q5WaitsHard
What is the main reason to use FluentWait over a plain WebDriverWait?
Q6InteractionsMedium
A StaleElementReferenceException is thrown. What actually happened?
Q7InteractionsMedium
Which approach is correct for a hover-then-click menu flow?
Q8InteractionsHard
When is a JavascriptExecutor click a legitimate choice?
Q9Windows & FramesEasy
Which sequence handles a link that opens a new tab?
Q10Windows & FramesMedium
You are inside a nested iframe and need to interact with the main page. What do you call?
Q11Windows & FramesHard
How do you reach an element inside an open shadow root in Selenium 4?
java
1WebElement host = driver.findElement(By.cssSelector("app-login"));Q12Grid & ParallelMedium
What is the key requirement for running Selenium tests in parallel safely?
Q13Grid & ParallelEasy
In a Selenium Grid 4 setup, what does the Hub/Router do?
Q14FrameworkMedium
Which statement about the Page Object Model is correct?
Q15FrameworkHard