InterfaceITargetElement
Represents a target element for a specific technology.
Definition
Namespace:ArtOfTest.Common
Assembly:ArtOfTest.WebAii.dll
Syntax:
public interface ITargetElement
Derived Classes:
Properties
Depth
Get the depth within the tree.
Host
Get the automation host.
IsTestRegion
Get whether this element is a test region or not
ParsedElement
Get the parsed element
TechnologyType
Get the technology type of this element.
Methods
AddChildNode(ITargetElement)
Add a child node to this element.
Declaration
void AddChildNode(ITargetElement child)
Parameters
child
The child node.
Capture()
Return the visual representation of this element
CaptureImage()
Captures element image.
Declaration
ElementImage CaptureImage()
Returns
ElementImage containing image itself, ScreenScale and OS version
GetChildren()
Get the children of this element.
Declaration
ITargetElement[] GetChildren()
Returns
An array of the children of this element.
GetHostParent()
Gets the ITargetElement representing the host of this element in an outer container, if one exists. For example, this will return an IFRAME element for a page contained within an IFRAME on another page.
GetParent()
Gets the parent of this element.
Declaration
ITargetElement GetParent()
Returns
The parent of this element.
GetRectangle()
Return the rectangle of this element
Declaration
Rectangle GetRectangle()
Returns
The rectangle of this element
GetStringPresentation()
Return a string representation of this element
GetUniqueHashCode()
Returns a unique ID that identifies this target element.
Match(IFindExpression)
Match this target element against an expression.
Declaration
bool Match(IFindExpression findExpr)
Parameters
findExpr
The FindExpression.
Returns
Returns true/false whether the expression matches.
SetClosingTag(ITargetElement)
Set the closing tag for this element.
Declaration
void SetClosingTag(ITargetElement closingElement)
Parameters
closingElement
The closing element
SetDepth(int)
Set the depth of this element.
SetParent(ITargetElement)
Set the parent of this node.
Declaration
void SetParent(ITargetElement parent)
Parameters
parent
The parent node.