HtmlImage Class

Description

Any area that is drawn using a bitmap in a Web application is considered an HtmlImage, regardless of whether the image contains links or not.

Availability

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

Note

When recording against an image that has mapped regions, Silk Test Classic records ClickRegion("full URL").

Tag

The default tag is the index of the image, the base portion of the URL, or the prior static text, depending on what type of image it is.

Types of Html-Images

There are three kinds of Html-images for Silk Test Classic:

Image Type Description Default Tag
Static Does not contain any links Index or prior static text
One region Entire image is clickable and is linked to one URL Base URL, which is the file name portion of the address relative to the image; if not an http link, the full URL.
Multi-region Image has more than one clickable region (an image map) Index or prior static text

Inheritance

The HtmlImage class is derived from the Control class.

Properties

In addition to the properties it inherits from the AnyWin class and Control class, HtmlImage has the following properties for the DOM extension only:

Property Alias Description
sLocation $Location The URL of the image. STRING

For more information, see Properties.

Example

Each of the pages in the GMO Web application contains an HtmlImage at the top that is the logo for the company.

Notes

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

Methods

In addition to the methods it inherits from the Control class, HtmlImage has the following methods: