SilverlightApp Class

Progress Software Corporation - Testing Framework 2018.1 Automation Infrastructure
Class that represents a Silverlight Application hosted in a browser.
Inheritance Hierarchy

SystemObject
  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

  NameDescription
Public methodSilverlightApp
Initializes a new instance of the SilverlightApp class
Top
Properties

  NameDescription
Public propertyAnnotator (Overrides VisualTreeHostAnnotator.)
Public propertyBounds
Get the Rectangle bounds of this application relative to the entire screen.
Public propertyContent
Gets the 'content' object of this plugin: plugin.content.xxx
Public propertyContentWindow (Overrides VisualTreeHostContentWindow.)
Public propertyStatic memberCustomAssemblies
Gets the list of custom assemblies included
Public propertyDesktop
Get the Desktop object used for real Keyboard/Mouse automation.
Public propertyEnableValidateMouseLocation
Gets / Sets whether to validate mouse click locations before allowing user interaction automation
Public propertyFind
Gets the XamlFind object used to search the silverlight plugin VisualTree.
Public propertyFriendlyName
Returns a friendly name for this host
(Overrides VisualTreeHostFriendlyName.)
Public propertyHost
Gets the Html tag hosting this Silverlight App as an HtmlControl object. (The parent Html tag of the object/embed tag)
Public propertyIsConnected
Gets whether the SilverlightApp is connected to the automation host
Public propertyIsLoaded
Gets whether this plugin is loaded or not.
Public propertyIsRecordingHost
Public propertyManagedProxy
The proxy that allows this app to communicate with the managed world inside a silverlight application
Public propertyManager (Overrides VisualTreeHostManager.)
Public propertyOwnerApp
The SilverlightApp containing this visual tree
(Inherited from VisualTreeHost.)
Public propertyOwnerBrowser
Gets the owner browser object instance of this silverlight application.
Public propertyPlugin
Gets the actual plugin element (object or embed) as an HtmlControl
Public propertyPopups
Public propertySettings
Gets the 'settings' object of this plugin: plugin.settings.xxx
Public propertyShouldDisplayAnnotation (Inherited from VisualTreeHost.)
Public propertyStateHashCode
Gets a unique identifier that identifies the state of this host
(Inherited from VisualTreeHost.)
Public propertyTechnologyType (Overrides VisualTreeHostTechnologyType.)
Public propertyUniqueId
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.)
Public propertyVisualTree
The visual tree wrapped by this host object
(Inherited from VisualTreeHost.)
Public propertyWindow (Overrides VisualTreeHostWindow.)
Top
Methods

  NameDescription
Public methodStatic memberAddCustomAssembly
Add a custom assembly to the list of types that will be available for automation in addition to what ArtOfTest.WebAii.Silverlight.UI contains.
Public methodCapture
Public methodCapture(FrameworkElement)
Public methodStatic memberClearAppCache
Clear the application's cache.
Public methodClearHighlight
Clear any highlighting on the Silverlight surface.
Public methodConnect
Connect to the Silverlight app
Public methodConnect(Int32)
Connect the silverlight application to the automation host.
Public methodElementFromPoint
Returns a proxy for the element at the specified application coordinates
Public methodElementsFromPoint
Gets a list of FrameworkElements under the specified point in the application
Public methodEnsureElementClickable
Public methodEnsureStateIsCurrent
Will force all visual trees in the application to refresh.
(Overrides VisualTreeHostEnsureStateIsCurrent.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindName(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.
Public methodFindNameT(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.
Public methodFixAnnotationArea (Inherited from VisualTreeHost.)
Public methodStatic memberGetApp(HtmlControl)
Public methodStatic memberGetApp(HtmlControl, Int32, Boolean)
Gets the Silverlight application for the specified HtmlControl host.
Public methodGetChildHosts
Get all contained hosts. This will always return an empty array for SilverlightApp hosts.
(Overrides VisualTreeHostGetChildHosts.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetHostRoot
Returns the root target element of this host. VisualTree.Root
(Inherited from VisualTreeHost.)
Public methodGetScreenRectangle
Public methodGetToolTipText
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberInitializeCustomTypes
Searches the AppDomain for assemblies that provide custom Silverlight types and adds the assemblies containing those types to the custom assembly list
Public methodStatic memberInitializeCustomTypes(IListICustomSilverlightTypesProvider)
Initializes the list of custom type providers that can provide automation in addition to what ArtOfTest.WebAii.Silverlight.UI contains
Public methodLocateAllInHost (Overrides VisualTreeHostLocateAllInHost(String).)
Public methodLocateInHost
Locate an element from the root of this host using an expression.
(Inherited from VisualTreeHost.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRefreshVisualTrees
Refreshes the main visual tree for the application as well as any open Popup visual trees.
Public methodResizeContainer
Public methodScrollElementVisible
Public methodSetWindowFocus (Overrides VisualTreeHostSetWindowFocus.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateInterHostLinks
Silverlight hosts have no inter-host links to update
(Inherited from VisualTreeHost.)
Public methodValidateMouseLocation (Overrides VisualTreeHostValidateMouseLocation(Point).)
Top
See Also

Reference