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

Why does SilkTest generate a different tag for the same object by using "Record Window Declarations" or by using "Record Testcase or Action"?

Why does SilkTest generate a different tag for the same object by using "Record Window Declarations" or by using "Record Testcase or Action"?

"Record window declarations" does not use the same recorder as Record Action or testcase. Usually the SilkTest recorder attempts to associate a window with an existing window declaration by matching only the caption.

If no window declaration is found that has a matching caption, then the recorder will dynamically generate a new window declaration for that window.

If a window does not have a caption, or if several windows of the same class have the same caption, then you should use the window ID form of the tag instead of the caption. To get the Record Window Identifiers and Record Actions recorders to recognize that window declaration, you must add the following line to the window declaration in question (.inc file):

[-] window BrowserChild WelcomeToGreenMountainOutp [ ] //multitag //"Welcome to Green Mountain Outpost" [ ] tag "$http:??gmo.demo.com?" [ ] setting bExactMatch = FALSE 

 

That setting tells the recorder to use an existing window identifier for the window as long as the tag statement matches that window"s declaration, even if the captions do not match.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:24
Updated by:
 
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.