Introduction to Waits

Condition to wait for a specific period of time to perform action on MobileElement before throwing an error NoSuchElementException.

There are two types of waits in Appium.

  • Implicitly wait
  • Explicit wait

Implicitly wait

Implicitly wait is used to wait upto given specific time before throwing an error as NoSuchElementException if it doesn't identify the MobileElement.

This method should be called only once per session as it is applied globally and we need to pass integer value in seconds.

Explicit wait

ExplicitWait or WebdriverWait is defined as the maximum time to wait for a given condition before throwing an error.


Let us discuss one by one now.