Class
SilverlightAppFinder

A static class used to obtain a list of all Silverlight Applications on a specific page

Definition

Namespace:ArtOfTest.WebAii.Silverlight

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public static class SilverlightAppFinder

Inheritance: objectSilverlightAppFinder

Methods

GetSilverlightAppIndex(Browser, HtmlControl)

Finds the index into the SilverlightApp array of the specified plugin

Declaration

cs-api-definition
public static int GetSilverlightAppIndex(this Browser browser, HtmlControl plugin)

Parameters

browser

Browser

The containing Browser

plugin

HtmlControl

The Silverlight plugin object of which we're looking up the index

Returns

int

The index of the specified plugin in the browser's SilverlightApps list, or -1 if not found

IsSilverlightPlugin(Element)

Detects whether the element is an object tag hosting a Silverlight plugin

Declaration

cs-api-definition
public static bool IsSilverlightPlugin(this Element element)

Parameters

element

Element

The element to inspect

Returns

bool

Returns true/false whether the element is a Silverlight plugin

SilverlightApps(Browser)

Returns an array of all Silverlight Applications on this page.

Declaration

cs-api-definition
public static SilverlightAppsList SilverlightApps(this Browser browser)

Parameters

browser

Browser

The browser instance.

Returns

SilverlightAppsList

An array of Silverlight Application.