SlApplication Method (Web and XUL Objects)

Applies to TestComplete 15.69, last modified on November 13, 2024

Description

The SlApplication method returns an SlApplication object of a child Silverlight application (if any).

Declaration

TestObj.SlApplication()

TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Result Object

Applies To

The method is applied to all web and XUL test objects.

View Mode

To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Result Value

The method returns an SlApplication object of a Silverlight Application that is a child of the current web object. The returned SlApplication object is a wrapper to the Silverlight application’s main class that encapsulates application-specific functionality and inherits from the System.Windows.Application class. If the web object does not contain a child Silverlight application, the method returns an empty stub object and posts an error message to the test log.

Remarks

The SlApplication method is available only if the Silverlight Application Support and Web Testing plugins are installed. Otherwise, the method is absent in the method list of the TestObj object.

Example

To view an example that demonstrates how to use the SlApplication method, see Addressing Objects of In-Browser Silverlight Applications.

See Also

SlApplication Object
WaitSlApplication Method (Web and XUL Objects)
Addressing Objects of In-Browser Silverlight Applications
Testing Silverlight Applications - Overview

Highlight search results