Using Object Maps with Web Applications

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

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.

In the object map, you can edit the URL pattern by which the object map entries are grouped. When you edit the pattern, Silk4NET 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: Silk4NET generates the new object map assets only for projects without an object map. If you record actions against a Web application for which Silk4NET already includes an object map that was generated with a version of Silk4NET 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.