Wait time is the duration of time that the Whatfix algorithm takes to locate an element on a page. This time is important, especially on pages that take a while to load completely. If the wait time elapses and the element is still not found, a Flow on Standby pop-up is displayed.
Application-specific default time
Wait time is application specific. It varies based on the application load time.
| Application load time | Wait time |
|---|---|
| Fast | 5 seconds |
| Slow | 10 seconds |
Some applications might take longer to load the elements. In such cases, a Flow on Standby pop-up is displayed even if there are no changes in the elements. Whatfix recommends manually setting the wait time based on the application load time.
Determine the wait time for a custom application
Use the following steps to determine the wait time for a custom application:
-
Open a page on your application, and then right click.
-
Click Inspect.

-
Go to the Console tab.

-
Refresh the page, and then run the following code in the console,
window.onload = function () {
var loadTime = window.performance.timing.domContentLoadedEventEnd-window.performance.timing.navigationStart;
console.log('Page load time is '+ loadTime);
}
- Once the page is completely loaded, the load time is shown in milliseconds.
- Run the code on different pages of the application and record the load time.
- The wait time must be at least twice the highest load time.
Configure the wait time
Wait time is the product of retry gap and step retries.
Wait time(milliseconds)= retry gap * step retries
where,
retry gap is the time interval between each time Whatfix searches for the element.
step retries are the number of times Whatfix searches for the element.
To configure the retry gap and the step retry attempts for the pop-up to be displayed, add the following script in the Advanced customization section,
window._wfx_settings = window._wfx_settings || {};
window._wfx_settings.step_configurations = {
"retry_gap_in_ms": 2000,
"step_retries": 4
};
- Replace the values for retry_gap_in_ms and step_retries as required.
- In the mentioned code, Whatfix searches for the element 4 times with an interval of 2 seconds between each search.
The Flow on Standby pop-up does not appear after a wait time of 20 seconds, irrespective of the custom duration set.