Skip to main content
All CollectionsEditor
Adding delay and synchronization (Wait/delay)
Adding delay and synchronization (Wait/delay)

How to delay you test for the right amount if your web app requires it

I
Written by Igor Ivanovski
Updated over 7 years ago

Synchronization

Synchronization means the methods to wait a proper time before proceeding in test execution. In Usetrace, there are automatic and manual synchronization.

Automatic synchronization

Usetrace automatically waits until a page is loaded before proceeding. Typically there is no need to add waits to synchronize test execution.

Elements loaded by AJAX are handled automatically. Usetrace waits until an element is visible and enabled before clicking or typing text in it.

In automatic synchronization, timeouts are applied. The default timeout is 30 seconds and it can be changed from the step’s locator configuration.

Manual synchronization

Sometimes it is not enough to wait until an element that is going to be clicked is visible. In these cases manual synchronization is needed.

To wait for any content to be visible on the screen before proceeding, add a check from the Pointer and select any element or text. This creates a synchronization point in the trace. Usetrace won’t proceed to the next step until the checked content appears.

Waiting

In rare cases it may be desired to wait exactly a certain time before proceeding. Add a fixed wait of n seconds from the pointer by clicking the wait icon.

Note that it is almost always wrong, and only slows down your test runs, to use the fixed wait. To wait for something visual to appear on the screen, use automatic or manual synchronization instead.

Did this answer your question?