Using Object Maps with Web Applications

By default, when you record actions against a Web application, Silk Test Workbench creates an object map with the name WebBrowser for native browser controls and an object map asset for every Web domain in the Common project.

You can change the Object map location to the current project in the General section of the Recording options. Silk Test Workbench will then generate an object map asset for every Web domain during recording.

For common browser controls which are not specific for a Web domain, like the main window or the dialog boxes for printing or settings, an additional object map is generated in the current project with the name WebBrowser. You can review the generated object map assets in the Asset Browser.

In the object map, you can edit the URL pattern by which the object map entries are grouped. When you edit the pattern, Silk Test Workbench performs a syntactical validation of the pattern. You can use the wildcards * and ? in the pattern.

Example

When you record some actions on http://www.borland.com and http://www.microfocus.com and then open the printer dialog, the following three new object map assets are added to the Asset Browser:
  • WebBrowser
  • borland_com
  • microfocus_com
Note: Silk Test Workbench generates the new object map assets only for projects without an object map. If you record actions against a Web application for which Silk Test Workbench already includes an object map that was generated with a version of Silk Test Workbench prior to version 14.0, the additionally recorded entries are stored into the existing object map, and there are no additional object map assets generated for the Web domains.