There are two kinds of Selenium waits

  • Implicit wait - used to set the default waiting time throughout the program
  • Explicit wait - used to set the waiting time for a particular instance only
Implicit Wait
It is simpler to code than Explicit Waits.
It is usually declared in the instantiation part of the code.

Explicit Wait
Explicit waits are done using the WebDriverWait and ExpectedCondition classes. For the following example, we shall wait up to 10 seconds for an element whose id is "username" to become visible before proceeding to the next command. 

Comments

Popular posts from this blog

Check MySQL query history from command line