HtmlColumn Class

Description

HtmlColumn is the class for a column within an Html-table in a Web application.

Availability

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

Tag

The default tag is the column heading or index.

Inheritance

The HtmlColumn class is derived from the AnyWin class.

Properties

In addition to the properties it inherits from the AnyWin class, HtmlColumn has the following property:

Property Type Description
$FormattedText LIST OF STRING The actual text as it is being displayed for the entire column. For more information, see the GetFormattedText method.

For more information, see About properties.

Example

The Online Catalog page in the GMO Web application contains one Html-table with four Html-columns:

	[-] HtmlTable CatalogTable
		[ ] tag "#1"
		[ ] HtmlColumn ItemNumber
		[ ] HtmlColumn ItemName
		[ ] HtmlColumn UnitPrice
		[ ] HtmlColumn OrderQuantity

Notes

By default, Silk Test Classic issues API clicks instead of Agent-based clicks for HtmlColumn with the Click method. See API click versus Agent click for more information.

If cells in an HtmlColumn contain other objects (links, images, or controls), those objects are children of the HtmlColumn. For example, in the Catalog table in the GMO Web application, the second column contains links. It is declared like this:

	[-] HtmlTable CatalogTable
		[ ] tag "#1"
		[ ] HtmlColumn ItemNumber
		[-] HtmlColumn ItemName
			[ ] tag "Item Name"
		[ ] HtmlLink N3PersonDomeTent
		[ ] HtmlLink ExternalFrameBackpack
		[ ] HtmlLink GlacierSunGlasses
		[ ] HtmlLink PaddedSocks
		[ ] HtmlLink HikingBoots
		[ ] HtmlLink BackCountryShorts

Methods

In addition to the methods it inherits from the AnyWin class, HtmlColumn has the following methods: