InterfaceICommunicationProxy
Interface for communication across application boundaries.
Definition
Namespace:ArtOfTest.WebAii.Silverlight
Assembly:ArtOfTest.WebAii.dll
Syntax:
public interface ICommunicationProxy
Derived Classes:
Properties
Application
Get the parent application object.
Methods
GetAllVisualTrees()
Gets all visual trees of the application
Declaration
string GetAllVisualTrees()
Returns
An encoded string containing all the visual trees of the application in the format (@@[length]@@[tree])+.
GetPeerHashCode(IAutomationPeer)
Gets the hash code of the peer.
Declaration
int GetPeerHashCode(IAutomationPeer peer)
Parameters
peer
The peer to get the hash code from.
Returns
The hash code.
GetProperties(IAutomationPeer)
Gets a collection of the properties of an element whose values we are able to transfer from the application back to the testing framework.
Declaration
Dictionary<string, string> GetProperties(IAutomationPeer peer)
Parameters
peer
Returns
GetProperty(AutomationProperty, IAutomationPeer)
Get a property for an automation peer
Declaration
object GetProperty(AutomationProperty property, IAutomationPeer peer)
Parameters
property
peer
Returns
GetRectangle(IAutomationPeer)
Get the bounding rectangle for an automation peer
Declaration
object GetRectangle(IAutomationPeer peer)
Parameters
peer
Returns
GetRectangle(IAutomationPeer, IAutomationPeer)
Get the bounding rectangle for one automation peer relative to another automation peer
Declaration
object GetRectangle(IAutomationPeer peer, IAutomationPeer relativeTo)
Parameters
peer
The peer whose rectangle to get
relativeTo
The reference point peer
Returns
GetRectangle(IAutomationPeer, int)
Get the bounding rectangle for an automation peer
Declaration
object GetRectangle(IAutomationPeer peer, int maxUiBlockingTime)
Parameters
peer
Peer.
maxUiBlockingTime
Max UI blocking time in ms.
Returns
GetTextRecursive(AutomationReference)
Gets the text content of an element or property. Recursively descends into children of an element and collects the text of all TextBlocks contained in it. Or if the reference is string-valued, simply returns that string
Declaration
string GetTextRecursive(AutomationReference reference)
Parameters
reference
The target reference (element or property of an element)
Returns
The text content, as described above
GetVirtualizedViewportOffset(IAutomationPeer)
Declaration
int GetVirtualizedViewportOffset(IAutomationPeer peer)
Parameters
peer
Returns
GetVisibility(IAutomationPeer)
Get the Visibility property value of an element, where the element inherits the Collapsed value if any of its visual tree ancestors have Visibility == Collapsed
Declaration
Visibility GetVisibility(IAutomationPeer peer)
Parameters
peer
The element whose Visibility value we're retrieving
Returns
Collapsed if the element or any of its visual tree ancestors have Visibility == Collapsed. Otherwise, Visible.
GetVisualTree(IAutomationPeer)
Declaration
string GetVisualTree(IAutomationPeer root)
Parameters
root
Returns
GetVisualTree(IAutomationPeer, string)
Declaration
string GetVisualTree(IAutomationPeer root, string hash)
Parameters
root
hash
Returns
GetVisualTree(string)
Get the full visual tree of the application
GetVisualTree(string, string)
Get the full visual tree of the application, but only if it's different from the one we already have
Highlight(IAutomationPeer, bool)
Highlight an element on the surface
Declaration
void Highlight(IAutomationPeer peer, bool clear)
Parameters
peer
The element to highlight
clear
True/False whether to clear it.
InvokeMethod(AutomationMethod, IAutomationPeer)
Invokes a method on an automation peer
Declaration
object InvokeMethod(AutomationMethod method, IAutomationPeer peer)
Parameters
method
peer
Returns
PublishKnownControlTypes(List<string>)
Publish the known control types to the Silverlight application.
ScrollToVisible(IAutomationPeer)
Scroll the controls containing an element so that the element comes into view
Declaration
void ScrollToVisible(IAutomationPeer peer)
Parameters
peer
The element to bring into view
SetProperty(AutomationProperty, IAutomationPeer, object)
Set a property for an automation peer
Declaration
void SetProperty(AutomationProperty property, IAutomationPeer peer, object value)
Parameters
property
peer
value