Wait Strategy

A proper Wait Strategy is essential for the stability of UI Automation. Your automation will fail randomly with all sorts of Exceptions(NoSuchElementException, StaleElementException….) and your automation won’t run stably. Flaky, that’s what you get.

But how can we come up … Read the rest

Mix & Match for Wait?

Can we mix&match implicitWait with explicit waits? Sure you can, if you enjoy the thrilling of ‘Uncertainty’.

Implicit waits are often implemented on the “remote” side of the WebDriver system, i.e they’re “baked in” to IEDriverServer.exe, chromedriver.exe, the WebDriver Firefox … Read the rest

Wait, But Don’t Wait for Godart

When automate tests against dynamic web, we often run into many kinds of exceptions indicating that the element is not interact-able. While most exceptions are thrown because elements are not displayed on the screen yet, and we solve the problem … Read the rest

WebDriverWait: The slim version of FluentWait

WebDriverWait is a subclass of FluentWait and it only takes WebDriver as its input. A Comparation of FluentWait and WebDriverWait constructors:

FluentWait(T input)
FluentWait(T input, Clock clock, Sleeper sleeper)

WebDriverWait(WebDriver driver, Clock clock, Sleeper sleeper, long timeOutInSeconds, long sleepTimeOut)
WebDriverWait(WebDriver

Read the rest

ExplicitWait – FluentWait

FluentWait allows us to wait for something till certain condition is satisfied, or till time out, whichever comes the first.

From java doc:

Each FluentWait instance defines the maximum amount of time to wait for a condition, as well as … Read the rest