Jasmine.Olivra
Jasmine.Olivra

Reputation: 1771

difference between WebDriver Wait timeout and implicitlyWait timeout?

I want to know technical difference between WebDriver Wait timeout and implicitlyWait timeout.

Upvotes: 9

Views: 10363

Answers (1)

Petr Janeček
Petr Janeček

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

Related Questions