Synchronization is about making sure your process is not attempting to perform actions on the application before the application is ready. Real people perform synchronization automatically. We know a busy cursor means to wait, and we never try to click a button that isn't present on the page. AutoBloks will attempt to do most of this synchronization for you, but sometimes a little helping hand is needed.
The synchronization timeout is the amount of time AutoBloks waits to perform an action before giving up. This means if you try to click a button that doesn't exist yet, AutoBloks waits patiently for it to appear before logging an error that the element was not found.
Default Synchronization Timeout
The Default synchronization timeout setting is configured on the Run tab of the Options dialog. You access this dialog by selecting File -> Options on the Command Bar. This is the value that controls overall synchronization timeouts.
Some Activities allow you to specify TimeoutSeconds as an Input Argument. When not populated, the Default synchronization timeout will be used. Otherwise, you can provide any value you feel is appropriate for your Activity Call. Long-running processes may need a longer timeout, while responsive parts of an application may need a shorter timeout.
|Activity Name||Usage Scenario|
|Wait until element exists||If you need to wait for a page to load or a process to complete, there may be an element that appears when this condition is met. Use this activity to wait for that element to exist.|
|Wait until element no longer exists||Use this activity if there is a busy indicator or other element displayed during an operation, and you need to wait until it no longer exists.|
|Wait for property value||This activity can wait until the property of an element meets a condition you specify. For example, you could wait until the text of an element changed to an expected value.|
|Wait for expression value|| There are many Variables available that can be evaluated using an Expression. Some of these variables have values that change over time. For example, if you needed to make sure your process started at the beginning of a minute, you could wait for the expression |
|Wait|| This activity simply waits the specified amount of time. This can be useful if you need to place a small delay between Activity Calls to ensure the application |
This activity is most useful for small delays and is why the time is specified in milliseconds. There is almost always a more appropriate Activity to use for longer synchronization operations.