HtmlList Class

Description

A list of one or more items in a Web application.

Availability

This functionality is supported only if you are using the Classic Agent.

Tag

The default tag is the index of the list or prior static text. One-item lists are identified by their text.

Inheritance

The HtmlList class is derived from the Control class.

Properties

In addition to the properties it inherits from the AnyWin class and the Control class, HtmlList has the following properties:

Property Type Description
$BackColor STRING Background color for the first character in the list: the name of the color if it matches one of the colors in Silk Test Classic's Table of Colors; otherwise an RGB value (red, green, blue).
$Contents LIST OF STRING The contents of the entire list. For more information, see the GetContents function.
$FontName STRING Font name
$FontSize INTEGER Font size in points
$FontStyle FONTSTYLE Font style
$FormattedText LIST OF STRING The actual text as it is being displayed for the entire list. For more information, see the GetFormattedText function.
$TextColor STRING Text color of the first character in the list: the name of the color if it matches one of the colors in Silk Test Classic's Table of Colors; otherwise an RGB value (red, green, blue).

About These Properties

The properties $BackColor, $FontName, $FontSize, $FontStyle, and $TextColor apply to the first character, first line of the entire list. Use the GetProperty function to access these properties for the first character of the list.

To get the properties of a specified position in a list item, use the GetItemProp function.

For more information, see About properties.

Notes

Html-lists can be unordered (items begin with a bullet) or ordered (items begin with a number or letter).

If what appears to be a list consists entirely of links, Silk Test Classic does not see the object as a list; rather it sees it as a series of links.

Methods

In addition to the methods it inherits from the AnyWin class and the Control class, HtmlList has the following methods: