SoftwareTestPilot
All discussions
Jonas HansenJul 6

Selenium: implicit wait vs explicit wait — when to use each?

Docs warn against mixing them. Why? And what do you actually run in prod?

seleniumwaits
Related learningExplore Academy skill paths

1 answer

Accepted solution

Jonas HansenJul 7

Never mix them — implicit wait applies to every findElement and silently interacts with explicit waits, doubling timeouts unpredictably. In prod: set implicit wait to 0 and use WebDriverWait + ExpectedConditions everywhere. Explicit waits are targeted, debuggable, and don't leak.