Reputation: 1771
I want to know technical difference between WebDriver Wait timeout and implicitlyWait timeout.
Upvotes: 9
Views: 10363
Reputation: 38424
As said in the documentation:
Implicit Wait
sets internally a timeout that will be used for all consecutive WebElement
searches. It will try lookup the element again and again for the specified amount of time before throwing an NoSuchElementException
if the element could not have been found. It does only this and can't be forced into anything else - it waits for elements to show up.
Explicit Wait
, or just Wait
is a one-timer used by you for a particular search. It is more extendible in the means that you can set it up to wait for any condition you might like. Usually, you can use some of the prebuilt ExpectedConditions
to wait for elements to become clickable, visible, invisible, etc., or just write your own condition that suits your needs.
Upvotes: 9