Wait in selenium-
1)implicit wait
Syntax-for implicit wait
_________________________________________________________________________________
_________________________________________________________________________________
driver.manage().timeouts().implicitlyWait(TimeOut,
TimeUnit.SECONDS);
_________________________________________________________________________________
_________________________________________________________________________________
2)Explicit Wait
Syntax-for Explicit Wat
_________________________________________________________________________________
_________________________________________________________________________________
WebDriverWait wait = new
WebDriverWait(WebDriverRefrence,TimeOut);
_________________________________________________________________________________
_________________________________________________________________________________
3)Fluent wait
Syntax- for fluent Wait
_________________________________________________________________________________
_________________________________________________________________________________
Wait wait = new FluentWait(WebDriver
reference)
.withTimeout(timeout, SECONDS)
.pollingEvery(timeout, SECONDS)
.ignoring(Exception.class);
_________________________________________________________________________________
_________________________________________________________________________________
4)Thread.sleep
Syntax-for thread.sleep
_________________________________________________________________________________
Thread.sleep(5000);
____________________________________________________________