InterviewSolution
| 1. |
What is Implicit wait? |
|
Answer» Before throwing and exception IMPLICIT wait tells WebDriver to wait for a CERTAIN amount of time. WebDriver will wait for the element based on the time we set before it throws an exception. We need to set some wait time to make WebDriver to wait and default setting is 0 (zero). Implicit Wait is in place till the browser is open. Based on time fixed for the implicit wait, the same wait time will be applied to all elements for search. Syntax: driver.manage().timeouts().implicitlyWait(TimeOut,TimeUnit.SECONDS);Two PARAMETERS required for Implicit wait are time as an integer value and second is time measurement in terms of seconds, minutes, milliseconds, microseconds, days, hours, ETC. |
|