- Implicit wait is common --- its applicable for driver object
Once used we need not use repeatedly.
- Explicit wait -- we cannot mention the time unit
- Implicit wait checks, if element is present or not.
Explicit also checks the status of the element(we can give the different conditions of the presence of the element not just preset...like is element enabled,
- Compared with Thread.sleep(<millisecs>") .. we have few differences
- syntax:
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); --- it will wait for the web element as it checks the element for every seconds, if it available then move on(not waiting till the 10 seconds).
-
Once used we need not use repeatedly.
- Explicit wait -- we cannot mention the time unit
- Implicit wait checks, if element is present or not.
Explicit also checks the status of the element(we can give the different conditions of the presence of the element not just preset...like is element enabled,
- Compared with Thread.sleep(<millisecs>") .. we have few differences
- syntax:
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); --- it will wait for the web element as it checks the element for every seconds, if it available then move on(not waiting till the 10 seconds).
-
No comments:
Post a Comment