ClassBaseTreeBuilder<T>
This class builds the a strongly-typed markup elements tree.
Definition
Namespace:ArtOfTest.Common
Assembly:ArtOfTest.WebAii.dll
Type Parameters:
T
Syntax:
public abstract class BaseTreeBuilder<T> where T : ITargetElement
Inheritance: objectBaseTreeBuilder<T>
Derived Classes:
Properties
DocType
Gets the DOCTYPE element if present in the document. Otherwise null.
Declaration
public T DocType { get; }
Property Value
T
RecursiveContainerTags
Gets a list of tags for elements that can contain a host of the same type as the host containing the element.
Declaration
protected virtual IEnumerable<string> RecursiveContainerTags { get; }
Property Value
Root
Gets the root Element node. You can access the tree using this node.
Declaration
public T Root { get; }
Property Value
T
Methods
BuildDomTree(string, bool)
Parse and build the Dom. This method will initialize the Root property with the root element of the Dom.
CreateNewElement(ParsedElement, IAutomationHost)
Called by the builder when a new element of type T needs to be created.
Declaration
public abstract T CreateNewElement(ParsedElement parsedElement, IAutomationHost host)
Parameters
parsedElement
The parsed element object.
host
The automation host object
Returns
T
The elmenet of Type T
StartTagCloses(string, string)
Determines whether to close an open tag with an optional closing tag based on the new tag we're parsing
TestRegionDetected(T)
Called by the builder when a TestRegion is detected.
Declaration
public abstract void TestRegionDetected(T regionElement)
Parameters
regionElement
T
The test region element.
TrackRecursiveContainer(T)
Track recursive container.
Declaration
protected virtual void TrackRecursiveContainer(T container)
Parameters
container
T
The container to track.