Overview¶
The following example demonstrates how to wait for multiple objects. (This typically includes waiting for the object to be "ready" for interaction, i.e. visible, enabled, etc.)
wait_for_any_object():
If any object is found
wait_for_any_object()
returns an array with the following contents (in the specified order):Reference to the first object that has been found.
Object name that was used to find the object.
If no object matching any of the specified object names can be found (or if the found objects are not enabled, or are not ready-to-use)
wait_for_any_object()
will throw an exception.The second and third parameters are optional and specify how many times and with how many seconds delay between each retry
wait_for_any_object()
should look for the objects.
find_any_object():
If any object is found
find_any_object()
returns an array with the following contents (in the specified order):Reference to the first object that has been found.
Object name that was used to find the object.
If no object matching any of the specified object names can be found
find_any_object()
will throw an exception.The second and third parameters are optional and specify how many times and with how many seconds delay between each retry
find_any_object()
should look for the objects.