1.

In a Selenium script, what happens if you use both implicit and explicit wait?

Answer»

According to the official SELENIUM manual, mixing Implicit and Explicit Waits is not recommended. Combining the two can RESULT in unpredictable wait times. Only one time in the code is implicit wait specified. Throughout the driver object instance, it will REMAIN the same. 

Explicit wait is used in the code WHENEVER it is required. At the time of execution, this wait will be called. It's a conditional waiting PERIOD. Wherever explicit wait is applied, it will supersede the implicit wait. As a result, Explicit Wait takes precedence over Implicit Wait.



Discussion

No Comment Found