Sometimes application under test takes some extra time to perform the transaction so we want the tool should wait until the transaction completes, then we use ‘Synchronisation’.
In Selenium we can use Synchronisation in 2 ways
- Conditional Wait: We create delay in execution depends on specific condition.
- Unconditional Wait: We create delay in execution for specific time.
Conditional Wait: This can be achieve using ImplictWait, ExplictWait & FluentWait
Unconditional Wait: This can be achieve using Thread.Sleep(TimeInMilliSeconds)