Manually capture an object map item or a locator using the
Identify Object dialog box and create a corresponding test step in a visual test.
-
Open the visual test that you want to modify.
A step that corresponds with each recorded action displays in the
Test Steps pane.
-
Click the test step in which you want to insert an object and action.
The new object and action will be inserted below the selected test step.
-
Choose
.
The
Identify Object dialog box opens.
-
Specify the
Selection mode.
-
Click
Start Identify.
If you want to capture an object map item or a locator in
Google Chrome,
Silk Test Workbench detects if the selected instance of
Google Chrome is started with the appropriate automation parameters, and if not,
Silk Test Workbench closes
Google Chrome and restarts it with the automation parameters set.
-
Optional: To bring the application under test into the appropriate state before recording a locator, click
Stop Identify.
The actions that you perform in the application under test are no longer recorded. To continue with the recording of a locator,
click
Start Identify.
-
Position the mouse over the object that you want to record and perform one of the following steps:
Silk Test Workbench lists the related locator string in the
Selected Locator text box.
-
To refine how locators display in the
Locator Details table, perform any of the following actions:
-
To test that the object that displays in the
Selected Locator text box is the object that you want to use, click
Test.
Silk Test Workbench highlights the object that corresponds with the locator in the application that you want to test.
-
To replace the locator that you recorded, select the locator that you want to use in the
Locator Details table.
The new locator displays in the
Selected Locator text box.
-
To copy the object and create a test step in the visual step, click
Paste.
The
Select Action dialog box opens.
-
Select the action that you want the object to perform and then click
OK.
Silk Test Workbench adds the object and the action in a new test step to the visual test.