Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Customizing locators and object map IDs during recording

Micro Focus Expert
Micro Focus Expert
0 0 434

Creating good identifiers for the items in your application under test (AUT) can be challenging. While Silk Test uses sophisticated strategies to automatically generate the best possible locators and object map entry names during recording, these might not always cover your specific requirements.

For example, the generated locator might not include an attribute that you want to be included, and the automatically generated object map entry for a recorded object might be difficult to read or might contain special characters. With Silk Test 19.0 or later, you can edit the locator and the object map entry for web controls directly from the recording UI.

You can do this during recording by right-clicking on the object, which opens the Choose Action dialog. You can then expand the Object identification area  and edit the locator in the Locator field as well as the object map entry in the Object Map ID field. Silk Test might offer additional suggestions for good locators, which you can select from the list in the Locator field.

ChooseActionDialog

For example, the automatically generated object map entry for a text field in the previous figure is login-form email. If someone else or even you look at the object map at a later point in time, it might be difficult to understand what object this entry refers to. Changing the object map entry to something like InsuranceWebLoginEmail would possibly provide more context.

This functionality is available for all supported desktop and mobile browsers except Internet Explorer.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.