Working With SysLink Controls in Desktop Windows Applications

Applies to TestComplete 15.70, last modified on December 17, 2024

TestComplete offers a set of functions to work with standard Win32 controls from your tests, including the SysLink control. This control allows you to locate hypertext links in a window. It shows marked-up text and invokes appropriate applications when the user clicks an embedded link.

TestComplete uses the Win32SysLink object to work with Win32 SysLink controls. This object is automatically associated with SysLink controls whose class names are listed in the project’s Object Mapping options. If your tested application uses a SysLink control that is inherited from a standard SysLink control, you can associate it with the Win32SysLink object by adding its class name to the Object Mapping list. For more information, see Default Project Properties - Object Mapping Options.

The topics of this section describe how to work with SysLink controls.

Note: Though the following topics deal with scripts, you can use the same approaches while testing an application from your keyword tests. For more information, see Keyword Tests Basic Operations.

In This Section

Getting SysLink Text in Desktop Windows Applications

Describes how to get the text that is displayed in the SysLink control.

Setting SysLink Text in Desktop Windows Applications

Explains how to set the text that is displayed in the SysLink control.

Obtaining the Number of Links in SysLink Controls in Desktop Windows Applications

Explains how to get the total number of links the SysLink control contains.

Obtaining SysLink Link Properties in Desktop Windows Applications

Explains how to get the properties of a link the SysLink control contains.

Clicking a Link in SysLink Controls in Desktop Windows Applications

Describes how to click a link the SysLink control contains.

Related Topics of Interest

Simulating User Actions

Explains the approaches used to simulate user actions over applications’ controls.

See Also

Win32 SysLink Support
Object-Specific Tasks
Supported Controls
Default Project Properties - Object Mapping Options

Highlight search results