This functionality is supported only if you are using the Classic Agent.
This topic describes how you can declare an object for which the class can vary. For example, you may have text on an HTML page that is a link under certain conditions.
If the class of an object varies, then you need to choose a class for the window identifier, and include both classes in the tag. The class of the window identifier for the object determines which methods and properties you can call for the object. Therefore you should choose the class that includes the wider set of methods and properties. However, keep in mind that when the object has the other class, you should only call those methods and properties that apply to that other class.
The tag of the object should be a multitag with a tag segment for each class. The class tag should be included in square brackets in each segment. You can either use the 'multitag' statement, or you can use the 'tag' statement with pipes (|) between segments.
Assume that you have text on an HTML page that is a link only under certain conditions. The caption of the text is Inactive Text, but when it becomes a link, the caption changes to Active Text.
Choose HtmlLink as the class of the window identifier because HtmlLink includes all of the HtmlText methods, and also includes additional methods such as GetLocation(). Of course, GetLocation() will not return a meaningful value if you call it when the object is really just HtmlText.
HtmlLink TextOrLink // recorded as 'InactiveText', since it was recorded when it // was HtmlText multitag "[HtmlText]InactiveText" "[HtmlLink]ActiveText"or
HtmlLink TextOrLink // recorded as 'InactiveText', since it was recorded // when it was HtmlText tag "[HtmlText]InactiveText|[HtmlLink]ActiveText"