Class
ElementsTree

Representation of the Element's tree.

Definition

Namespace:ArtOfTest.Common.Design.ProjectModel

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public class ElementsTree

Inheritance: objectElementsTree

Properties

Root

Gets the root element node of the elements tree.

Declaration

cs-api-definition
public ElementNode Root { get; }

Property Value

ElementNode

Methods

EnsureUniqueName(ref ElementNode, ElementNodeCollection)

Ensure the friendly name we initially generate is unique.

Declaration

cs-api-definition
public static void EnsureUniqueName(ref ElementNode node, ElementNodeCollection collection)

Parameters

node

ElementNode

collection

ElementNodeCollection

Find(ElementNode)

Attempts to find a specific branch

Declaration

cs-api-definition
public ElementNode Find(ElementNode branch)

Parameters

branch

ElementNode

The branch to find.

Returns

ElementNode

FindAssociatedDescriptors(AutomationStepBase)

Finds all descriptors in the elements tree associated with the element the given step depends on.

Declaration

cs-api-definition
public List<ElementDescriptor> FindAssociatedDescriptors(AutomationStepBase step)

Parameters

step

AutomationStepBase

The step with associated element.

Returns

List<ElementDescriptor>

A list of descriptors associated with the element.

Merge(ElementNode, bool)

Attempts to merge the branch into the tree.

Declaration

cs-api-definition
public void Merge(ElementNode branch, bool compareBothSides = false)

Parameters

branch

ElementNode

The branch to merge

compareBothSides

bool

MergeWithElementValidation(ElementNode, ITargetElement)

Merge with Element Validation

Declaration

cs-api-definition
public void MergeWithElementValidation(ElementNode branch, ITargetElement target)

Parameters

branch

ElementNode

The ElementNode to merge

target

ITargetElement

The actual target element this node represents

Remove(ElementDescriptor)

Remove the element descriptor passed in.

Declaration

cs-api-definition
public void Remove(ElementDescriptor desc)

Parameters

desc

ElementDescriptor

The element descriptor

Events

ElementRemoved

Declaration

cs-api-definition
public event Action<ElementDescriptor> ElementRemoved

Event Value

Action<ElementDescriptor>