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.
-
Click
Identify Object in the toolbar.
The
Identify Object dialog box opens.
-
Click
Start Identify.
-
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.
-
Click the control that you want to use as it is highlighted.
-
Optional: Click
Show Locator Details to display the locator tree and any related attributes in the
Locator Attribute table.
-
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.
-
Click
Test to verify that the locator recognizes the correct control.
-
To copy the locator to the script, click
Paste.
-
Click
Close.