Class that represents a Silverlight Application hosted in a browser.
Inheritance Hierarchy
ArtOfTest.WebAii.XamlVisualTreeHost
ArtOfTest.WebAii.SilverlightSilverlightApp
Namespace: ArtOfTest.WebAii.Silverlight
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
public class SilverlightApp : VisualTreeHost, IApplication, IAutomationHost, ISupportSearchHost
The SilverlightApp type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SilverlightApp | Initializes a new instance of the SilverlightApp class |
Properties
Name | Description | |
---|---|---|
Annotator | (Overrides VisualTreeHostAnnotator.) | |
Bounds |
Get the Rectangle bounds of this application
relative to the entire screen.
| |
Content |
Gets the 'content' object of this plugin: plugin.content.xxx
| |
ContentWindow | (Overrides VisualTreeHostContentWindow.) | |
CustomAssemblies |
Gets the list of custom assemblies included
| |
Desktop |
Get the Desktop object used for real Keyboard/Mouse automation.
| |
EnableValidateMouseLocation |
Gets / Sets whether to validate mouse click locations before allowing user interaction automation
| |
Find |
Gets the XamlFind object used to
search the silverlight plugin VisualTree.
| |
FriendlyName |
Returns a friendly name for this host
(Overrides VisualTreeHostFriendlyName.) | |
Host |
Gets the Html tag hosting this Silverlight App as an HtmlControl object.
(The parent Html tag of the object/embed tag)
| |
IsConnected |
Gets whether the SilverlightApp is connected to the automation host
| |
IsLoaded |
Gets whether this plugin is loaded or not.
| |
IsRecordingHost | ||
ManagedProxy |
The proxy that allows this app to communicate
with the managed world inside a silverlight application
| |
Manager | (Overrides VisualTreeHostManager.) | |
OwnerApp |
The SilverlightApp containing this visual tree
(Inherited from VisualTreeHost.) | |
OwnerBrowser |
Gets the owner browser object instance of this silverlight application.
| |
Plugin |
Gets the actual plugin element (object or embed) as an HtmlControl
| |
Popups | ||
Settings |
Gets the 'settings' object of this plugin: plugin.settings.xxx
| |
ShouldDisplayAnnotation | (Inherited from VisualTreeHost.) | |
StateHashCode |
Gets a unique identifier that identifies the state of this host
(Inherited from VisualTreeHost.) | |
TechnologyType | (Overrides VisualTreeHostTechnologyType.) | |
UniqueId |
A unique identifier that identifies this plugin instance.
This id is updated only when the plug-in is reloaded on a postback or a browser refresh.
(Overrides VisualTreeHostUniqueId.) | |
VisualTree |
The visual tree wrapped by this host object
(Inherited from VisualTreeHost.) | |
Window | (Overrides VisualTreeHostWindow.) |
Methods
Name | Description | |
---|---|---|
AddCustomAssembly |
Add a custom assembly to the list of types that will be available
for automation in addition to what ArtOfTest.WebAii.Silverlight.UI contains.
| |
Capture | ||
Capture(FrameworkElement) | ||
ClearAppCache |
Clear the application's cache.
| |
ClearHighlight |
Clear any highlighting on the Silverlight surface.
| |
Connect |
Connect to the Silverlight app
| |
Connect(Int32) |
Connect the silverlight application to the automation host.
| |
ElementFromPoint |
Returns a proxy for the element at the specified application coordinates
| |
ElementsFromPoint |
Gets a list of FrameworkElements under the specified point in the application
| |
EnsureElementClickable | ||
EnsureStateIsCurrent |
Will force all visual trees in the application to refresh.
(Overrides VisualTreeHostEnsureStateIsCurrent.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FindName(String) |
Finds an element with a specific name in the Silverlight Application.
If the name is not found using the Root.FindName, it will use the
VisualTree to traverse the tree and find the first name occurrence.
| |
FindNameT(String) |
Finds an element with a specific name in the Silverlight Application.
If the name is not found using the Root.FindName(), it will use the
VisualTree to traverse the tree and find the first name occurrence.
| |
FixAnnotationArea | (Inherited from VisualTreeHost.) | |
GetApp(HtmlControl) | ||
GetApp(HtmlControl, Int32, Boolean) |
Gets the Silverlight application for the specified HtmlControl host.
| |
GetChildHosts |
Get all contained hosts. This will always return an empty array for SilverlightApp hosts.
(Overrides VisualTreeHostGetChildHosts.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetHostRoot |
Returns the root target element of this host. VisualTree.Root
(Inherited from VisualTreeHost.) | |
GetScreenRectangle | ||
GetToolTipText | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitializeCustomTypes |
Searches the AppDomain for assemblies that provide custom Silverlight types and adds the assemblies containing those
types to the custom assembly list
| |
InitializeCustomTypes(IListICustomSilverlightTypesProvider) |
Initializes the list of custom type providers that can provide automation in addition to
what ArtOfTest.WebAii.Silverlight.UI contains
| |
LocateAllInHost | (Overrides VisualTreeHostLocateAllInHost(String).) | |
LocateInHost |
Locate an element from the root of this host using an expression.
(Inherited from VisualTreeHost.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RefreshVisualTrees |
Refreshes the main visual tree for the application as well as any open Popup visual trees.
| |
ResizeContainer | ||
ScrollElementVisible | ||
SetWindowFocus | (Overrides VisualTreeHostSetWindowFocus.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UpdateInterHostLinks |
Silverlight hosts have no inter-host links to update
(Inherited from VisualTreeHost.) | |
ValidateMouseLocation | (Overrides VisualTreeHostValidateMouseLocation(Point).) |
See Also