ClassElementsTree
Representation of the Element's tree.
Definition
Namespace:ArtOfTest.Common.Design.ProjectModel
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public class ElementsTree
Inheritance: objectElementsTree
Properties
Root
Gets the root element node of the elements tree.
Methods
EnsureUniqueName(ref ElementNode, ElementNodeCollection)
Ensure the friendly name we initially generate is unique.
Declaration
public static void EnsureUniqueName(ref ElementNode node, ElementNodeCollection collection)
Parameters
node
collection
Find(ElementNode)
Attempts to find a specific branch
Declaration
public ElementNode Find(ElementNode branch)
Parameters
branch
The branch to find.
Returns
FindAssociatedDescriptors(AutomationStepBase)
Finds all descriptors in the elements tree associated with the element the given step depends on.
Declaration
public List<ElementDescriptor> FindAssociatedDescriptors(AutomationStepBase step)
Parameters
step
The step with associated element.
Returns
A list of descriptors associated with the element.
Merge(ElementNode, bool)
Attempts to merge the branch into the tree.
Declaration
public void Merge(ElementNode branch, bool compareBothSides = false)
Parameters
branch
The branch to merge
compareBothSides
MergeWithElementValidation(ElementNode, ITargetElement)
Merge with Element Validation
Declaration
public void MergeWithElementValidation(ElementNode branch, ITargetElement target)
Parameters
branch
The ElementNode to merge
target
The actual target element this node represents
Remove(ElementDescriptor)
Remove the element descriptor passed in.
Declaration
public void Remove(ElementDescriptor desc)
Parameters
desc
The element descriptor
Events
ElementRemoved
Declaration
public event Action<ElementDescriptor> ElementRemoved
Event Value