Gauravarapu Pavan Subbarao
2 min readMay 27, 2021


From the tales of SELENIUM UI automation, it is apparent how synchronization is very important and inevitable for the overall success of UI use cases.

After having used all the different synchronizations patterns that SELENIUM as a tool offered us, we can not avoid to appreciate the minds behind the FLUENT WAIT implementation. In the most simplistic view, fluent wait in selenium looks for a specific web element continuously in the regular intervals until it reaches the maximum time or it finds the required element.

With this basic understanding, we can leverage the concept of fluent wait in all the situations beyond UI automation, where we are compelled to wait for the specific result.

Of course, we can easily make the thread to sleep for a certain time before we search for the output. It is only like a twist in the wind — the thread continues to sleep until it reaches the maximum time out even after the result is available.

Inheriting the basic skeleton of the fluent wait from selenium , we can implement the concept of this dynamic waiting with a simple try catch blocks and a while loop in Java.

here’s how we can do it -

About me: I’m working as a software test consultant who cares for helping employers enhance and simplify their testing efforts through smart application of tools.