Recall & Review
beginner
What is an implicit wait in Selenium?
An implicit wait tells Selenium to wait a certain amount of time when trying to find an element if it is not immediately available. It waits before throwing an error.
Click to reveal answer
beginner
How do you set an implicit wait in Selenium with Java?
You use driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10)); to wait up to 10 seconds for elements to appear.
Click to reveal answer
beginner
True or False: Implicit wait applies globally to all element searches in the WebDriver instance.
True. Once set, implicit wait applies to all element searches until changed or the session ends.
Click to reveal answer
beginner
What happens if the element appears before the implicit wait time ends?
Selenium proceeds immediately without waiting the full time. It only waits as long as needed up to the timeout.
Click to reveal answer
intermediate
Why should you avoid mixing implicit and explicit waits in Selenium?
Mixing them can cause unpredictable wait times and test flakiness because they can interfere with each other.
Click to reveal answer
What does implicit wait do in Selenium?
✗ Incorrect
Implicit wait waits up to the specified time for elements to be found before throwing an error.
How do you set an implicit wait of 5 seconds in Selenium Java?
✗ Incorrect
The correct method is driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(5));.
If an element appears after 2 seconds but implicit wait is 10 seconds, how long will Selenium wait?
✗ Incorrect
Selenium proceeds as soon as the element appears, so it waits only 2 seconds.
What is a risk of using implicit wait too high?
✗ Incorrect
High implicit wait times can slow down tests because Selenium waits longer before failing.
Can implicit wait be applied to only one element search?
✗ Incorrect
Implicit wait is set globally and affects all element searches in the WebDriver session.
Explain what implicit wait is and how it affects Selenium test execution.
Think about how Selenium waits before giving up on finding elements.
You got /4 concepts.
Describe how to set implicit wait in Selenium Java and why mixing it with explicit wait can cause problems.
Consider how different waits control timing and can interfere.
You got /3 concepts.