You can insert a step anywhere in a visual test to wait for an object to exist or disappear during visual test playback. Include
a wait for object step to coordinate synchronization between the visual test playback and the test application.
Open the visual test in which you want to include a wait for object step.
Perform one of the following steps.
Select the step that precedes where you want the wait for object step to execute and then choose
Insert > Synchronization and Timing > Wait for object.
Open the
Logic Toolbox, drag
Wait for objects to appear or disappear during playback of this visual test to the appropriate position in the
Test Steps pane.
Silk Test Workbench inserts a
Wait for " to exist step below the selected step.
Select the newly created
Wait for " to exist step to display its properties in the
Wait category in the
Properties pane.
In the
Properties pane, in the
Locator text box, identify the object that you want to wait for.
Application Under Test – Click this button to identify a visible control directly from the application under test.
Screen Preview – Click this button to identify a control directly from the
Screen Preview, if the application under test is not available.
Identify Object Dialog – Click this button to use the
Identify Object dialog box to identify a non-visible control. The
Identify Object dialog box additionally enables you to edit the locator of the control.
Select – Click this button to assign a literal, variable, expression result, or ActiveData value.
From the
Wait type list, specify whether to wait for the object to exist or disappear.
In the
Timeout text box, type the maximum number of milliseconds to wait for the object to exist or disappear.
By default, this value is set to the
Default wait timeout (milliseconds) option value in the
Options dialog box. If no object matches within the timeout period, a playback error occurs.