Synchronisation Concept in Selenium

November 7, 2017
Category: Selenium

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

  1. Conditional Wait: We create delay in execution depends on specific condition.
  2. 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)