Testing / Selenium Interview questions
Define implicit wait in Selenium?
An implicit wait tells the WebDriver instance to poll the DOM for a set duration whenever a findElement() call doesn't immediately find a match, before throwing a NoSuchElementException.
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));
It's set once per driver instance and then applies globally to every subsequent findElement call for that session, rather than being specified per-call. This makes it easy to add, but also easy to misuse - a global implicit wait can silently add delay to every failed lookup across an entire suite, and mixing it with explicit waits on the same driver is officially discouraged because their interactions can produce unpredictable total wait times.
More Related questions...