Identifying a Control in the Test Application (.NET Script)

When you record a .NET script, Silk Test Workbench automatically identifies controls. Identify a control name in the application that you are testing to change an existing control or to manually insert an action.
  1. Click Identify Object in the toolbar. The Identify Object dialog box opens.
  2. Click Start Identify.
  3. 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.
  4. Click the control that you want to use as it is highlighted.
  5. Optional: Click Show Locator Details to display the locator tree and any related attributes in the Locator Attribute table.
  6. 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:
    /BrowserApplication//BrowserWindow//input[@id='loginButton']
    If you have a textContents Login listed in the Locator Attribute table, you can manually change the locator to the following:
    /BrowserApplication//BrowserWindow//input[@textContents='Login']
    The new locator displays in the Selected Locator text box.
  7. Click Test to verify that the locator recognizes the correct control.
  8. To copy the locator to the script, click Paste.
  9. Click Close.