Identifying a Control for a Visual Test with the Identify Object Dialog

When you record a visual test, Silk Test Workbench automatically identifies controls. When the visual test is recorded, you can change the controls that are used in the visual test or manually insert additional test steps into the visual test. Use the Identify Object dialog to identify non-visible controls, for example containers, in the application under test.
  1. In the Test Steps pane, select the step for which you want to change the control.
  2. In the Properties pane, expand the Identify a control menu in the Locator text box.
  3. Select Identify Object Dialog.
  4. If you are testing a web application, the Select Browser dialog box opens. Select the browser on which you want to identify the control and click Start Identify. The Identify Object dialog box opens.
  5. Click Start Identify.
  6. Move the cursor to the application that you are testing. Controls appear highlighted as the cursor passes over them in the application. The related locator string or object map item shows in the Selected Locator text box.
  7. Click the control that you want to use as it is highlighted.
  8. Optional: Click Show Locator Details to display the locator tree and any related attributes in the Locator Attribute table.
  9. Optional: You can replace a recorded locator attribute with another locator attribute from the Locator Attribute table. For example, your recorded locator might look like the following:
    If you have a textContents Login listed in the Locator Attribute table, you can manually change the locator to the following:
    The new locator displays in the Selected Locator text box.
  10. Click Test to verify that the locator recognizes the correct control.
  11. To add a new step that uses the locator to the visual test, click Paste. The Select Action dialog box opens. Select the action that should be performed against the control and click OK.