ClassHtmlElementContainer
Base class for containers of HTML elements in the Project.cs file
Definition
Namespace:ArtOfTest.WebAii.TestTemplates
Assembly:ArtOfTest.WebAii.dll
Syntax:
public abstract class HtmlElementContainer : ElementContainer<Element, HtmlFindExpression>
Inheritance: objectElementContainer<Element, HtmlFindExpression>HtmlElementContainer
Derived Classes:
Inherited Members
Constructors
HtmlElementContainer(Find)
Initializes a new HtmlElementContainer object.
Properties
Find
Gets the Find object scoped to this container.
OwnerBrowser
The owner browser of this container.
Methods
Get(HtmlFindExpression)
Find a matching element in the DOM tree. Waits the default amount of time for the element to exist.
Declaration
public override Element Get(HtmlFindExpression expr)
Parameters
expr
The HtmlFindExpression that defines how to find the right element.
Returns
An Element or null if no matching element found.
Overrides
Get<TControl>(HtmlFindExpression)
Find a matching element in the DOM tree. Waits the default amount of time for the element to exist.
Declaration
public TControl Get<TControl>(HtmlFindExpression expr) where TControl : Control, new()
Parameters
expr
The HtmlFindExpression that defines how to find the right element.
Returns
TControl
An element of type TControl or null if no matching element found.
Get<TControl>(HtmlFindExpression, bool, int)
Find a matching element in the DOM tree.
Declaration
public TControl Get<TControl>(HtmlFindExpression expr, bool waitOnElement, int timeout) where TControl : Control, new()
Parameters
expr
The HtmlFindExpression that defines how to find the right element.
waitOnElement
Whether or not to wait for the element to exist.
timeout
The amount of time to wait for the element to exist.
Returns
TControl
An element of type TControl or null if no matching element found.
Get<TControl>(params string[])
Find a matching element in the DOM tree. Waits the default amount of time for the element to exist.
Declaration
public TControl Get<TControl>(params string[] clauses) where TControl : Control, new()
Parameters
clauses
string[]
An array of HtmlFindExpression strings to use to find a matching element in the DOM tree.
Returns
TControl
An element of type TControl or null if no matching element found.
GetElement(HtmlFindExpression, bool, int)
Find a matching element in the DOM tree.
Declaration
protected override Element GetElement(HtmlFindExpression expr, bool waitOnElement, int timeout)
Parameters
expr
The HtmlFindExpression that defines how to find the right element.
waitOnElement
Whether or not to wait for the element to exist.
timeout
The amount of time to wait for the element to exist.
Returns
An Element or null if no matching element found.
Overrides