HighlightObject Method

Class

AnyWin class.

Action

Highlights an object when a script is replayed.

Availability

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

Syntax

object.HighlightObject([timeout, color])
Variable Description
timeout Optional: Number of seconds that Silk Test Classic highlights the object. If no value is specified, the object remains highlighted until a different object is highlighted. NUMBER.
color Optional: Specifies the color to use for highlighting the object. If no color is specified, the default highlight color, green, is used. COLOR.

Notes

If no timeout value is specified, the object remains highlighted until a different object is highlighted.

Use the option OPT_REPLAY_HIGHLIGHT_TIME to specify that before each invoke command the object is highlighted. By default this value is set to 0, which means that objects are not highlighted by default.

Example

Desktop.HighlightObject(1.0, yellow)