Represents an element in the Document Object Model (DOM) tree.
Syntax| C# |
public class Element
Members| All Members | Constructors | Methods | Properties | Fields | Events |
| Icon | Member | Description |
|---|---|---|
![]() | ElementNew(FindParam, Browser) |
Initialize an element proxy.
The only property off this element that you can use is
Wait.Exist() or Wait.ExistsNot()
|
![]() | ElementNew(FindParam, Find, Browser) |
Initialize an element proxy.
The only property off this element that you can use is
Wait.Exist() or Wait.ExistsNot()
|
![]() | AbsoluteSiblingTagIndex |
Gets the absolute sibling tag index of this element within the parent node.
Basically the order of this node among its siblings. Zero-based.
|
![]() | AbsoluteTagIndex |
Gets the absolute that index of this element. This index is unique within a document.
|
![]() | AddChild(Element) |
Add a child element to this element.
|
![]() | As<(Of TControl>)() |
Returns this elements as a strongly-typed control of type TControl.
|
![]() | Attributes |
Gets the list of attributes contained in this element.
|
![]() | ChildNodes |
Gets the list of all parsed element of this tag including text literals, comments, malformed tags...etc.
|
![]() | Children |
Gets the list of child elements that are well formed markup non-text elements.
|
![]() | ContainsAttribute(iAttribute, Boolean, StringComparison, Boolean) |
Whether a certain attribute is contained in this element
|
![]() | ContainsAttribute(String) |
True/False whether this element contains a specific attribute name.
|
![]() | Content |
Gets the raw content of the tag that represents this element.
Examples
The following tag <foo id="bar" height="px">some text</foo> , has
a Content property that is:
'<foo id="bar" height="px">'
Note: this does not include the innerText or the closing tag.
|
![]() ![]() | CreateLight(String, Int32) |
Create an Element object with a specific tagname and index.
|
![]() | CssClassAttributeValue |
Gets the value of the attribute ('cssclass') if present on this tag.
|
![]() | Data |
Gets/Sets any custom data associated with this element.
|
![]() | ElementGenderType |
This element's gender type. (currently Html or Xaml)
|
![]() | ElementType |
Gets the element type (div, table ..etc).
|
![]() | Equals(Object) |
Defines how two Elements should be compared.
(Overrides Object.Equals(Object).) |
![]() | Finalize() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | FindObjectUsed |
Gets a reference to the Find object used to find this element
|
![]() | FindParamsUsed |
Gets the FindParams used to find this element when using the Find object.
If chained identification is used this array will contain the list of params, otherwise
will contain a single FindParam object.
This property is not set when calling the Find.Allxxx methods.
|
![]() | FriendlyName() |
Constructs a friendly name that represents this element.
|
![]() | GetAttribute(String) |
Find a specific attribute by name and returns it. (case-insensitive)
|
![]() | GetAttribute(String, Boolean) |
Finds a specific attribute name in the Element list of attributes and returns
its object
|
![]() | GetAttributeValueOrEmpty(String) |
Gets the value of the attribute or a String.Empty if attribute does not exist.
|
![]() | GetHashCode() |
Get the hash code for this Element.
(Overrides Object.GetHashCode().) |
![]() | GetNextSibling() |
Get the next sibling of this node. If this node is the last sibling, will return null.
|
![]() | GetPreviousSibling() |
Get the previous sibiling of this node. If this node is the first sibling, will return null.
|
![]() | GetRectangle() |
Gets the element rectangle. (X,Y) and width, height as it appears on browser and screen.
Takes into account any scrolling.
|
![]() | GetType() | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetValue<(Of T>)(String) |
Get a property value on this element.
|
![]() | HasIdOrName |
Gets whether this element has an id or a name set on it.
|
![]() | IdAttributeValue |
Gets the value of the attribute ('id') if present on this tag.
|
![]() | InnerMarkup |
Gets the InnerMarkup of this element.
Examples
Example:
<foo id="1">hello<bar></bar></foo>
If foo is this element then InnerMarkup=<bar></bar>
|
![]() | InnerText |
Gets this element's inner text content including all of its nested children.
Examples
Example:
<foo id="1">one<bar>two</bar></foo>
If foo is this element then InnerText=onetwo
|
![]() | InputElementType |
Gets the Input type (i.e. checkbox, radio...etc) if the ElementType=Input.
Otherwise, will return NotSet.
|
![]() | IsBeginTag |
Gets whether it is a begin tag <foo bar='me'> .
|
![]() | IsEndTag |
Gets whether this element is an end tag </foo>.
|
![]() | IsProxy |
Gets whether this element is a proxy element or a fully initialized element.
|
![]() | IsSelfClosing |
Gets whether the element is self-closing (<foo />).
|
![]() | MatchingClosingTag |
Gets the element's closing tag if it is a begin tag and not self-closing.
|
![]() | MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | NameAttributeValue |
Gets the value of the attribute ('name') if present on this tag
|
![]() | OuterMarkup |
Gets the OuterMarkup of this element.
Examples
Example:
<foo id="1"><bar></bar></foo>
If foo is this element then outerMarkup=<foo id="1"><bar></bar></foo>
|
![]() | OwnerBrowser |
Returns the owner browser of this element.
|
![]() | Parent |
Gets the Parent element.
|
![]() | ParsingType |
Gets the parsing type set by the parser. (Markup, LiteralText, Comment..etc)
|
![]() | Refresh() |
Using the FindParamsUsed and the TestRegionIdUsed to find this element
last, this methods will attempt to re-find this element in the new DOM
tree.
|
![]() | Refresh(Boolean) |
Using the FindParamsUsed and the TestRegionIdUsed to find this element
last, this methods will attempt to re-find this element in the new DOM
tree.
|
![]() | SetValue<(Of T>)(String, T) |
Set a property to a value on this element.
|
![]() | TagName |
Gets the tagName of the the element
|
![]() | TagNameIndex |
Gets the tagName occurrence of this element.
Examples
If this element is TagName='foo', then TagNameIndex= 3 indicates that this
element represents the third occurence of tagName 'foo' within this document.
|
![]() | TextContent |
Gets this element's inner text content without recursing through all its nested children for text.
|
![]() | ToString() |
String representation of an Element.
(Overrides Object.ToString().) |
![]() | Wait |
Gets the wait object to wait for certain conditions of this element.
|
Inheritance Hierarchy| Object | |
![]() | Element |
Assembly: ArtOfTest.WebAii (Module: ArtOfTest.WebAii)





