Class Element
Inheritance
Inherited Members
Namespace: ArtOfTest.WebAii.ObjectModel
Assembly: ArtOfTest.WebAii.dll
Syntax
public class Element : ITargetElement
Constructors
Element(HtmlFindExpression, Find, Browser)
Declaration
public Element(HtmlFindExpression findExpr, Find findObj, Browser ownerBrowser)
Parameters
HtmlFindExpression
findExpr
|
Find
findObj
|
Browser
ownerBrowser
|
Properties
AbsoluteSiblingTagIndex
Declaration
public int AbsoluteSiblingTagIndex { get; set; }
Property Value
System.Int32
|
AbsoluteTagIndex
Declaration
public int AbsoluteTagIndex { get; }
Property Value
System.Int32
|
Attributes
Declaration
public ReadOnlyCollection<iAttribute> Attributes { get; }
Property Value
System.Collections.ObjectModel.ReadOnlyCollection<iAttribute>
|
ChildNodes
Declaration
public ReadOnlyCollection<Element> ChildNodes { get; }
Property Value
System.Collections.ObjectModel.ReadOnlyCollection<Element>
|
Children
Declaration
public ReadOnlyCollection<Element> Children { get; }
Property Value
System.Collections.ObjectModel.ReadOnlyCollection<Element>
|
Content
Declaration
public string Content { get; }
Property Value
System.String
|
CssClassAttributeValue
Declaration
public string CssClassAttributeValue { get; }
Property Value
System.String
|
Data
Declaration
public object Data { get; set; }
Property Value
System.Object
|
Depth
ElementType
FindExpressionUsed
FindObjectUsed
FrameElement
HasIdOrName
Declaration
public bool HasIdOrName { get; }
Property Value
System.Boolean
|
Host
IdAttributeValue
Declaration
public string IdAttributeValue { get; }
Property Value
System.String
|
InnerMarkup
Declaration
public string InnerMarkup { get; }
Property Value
System.String
|
InnerText
Declaration
public string InnerText { get; }
Property Value
System.String
|
InputElementType
IsBeginTag
Declaration
public bool IsBeginTag { get; }
Property Value
System.Boolean
|
IsEndTag
Declaration
public bool IsEndTag { get; }
Property Value
System.Boolean
|
IsProxy
Declaration
public bool IsProxy { get; }
Property Value
System.Boolean
|
IsSelfClosing
Declaration
public bool IsSelfClosing { get; }
Property Value
System.Boolean
|
IsTestRegion
Declaration
public bool IsTestRegion { get; }
Property Value
System.Boolean
|
Implements
MatchingClosingTag
NameAttributeValue
Declaration
public string NameAttributeValue { get; }
Property Value
System.String
|
OuterMarkup
Declaration
public string OuterMarkup { get; }
Property Value
System.String
|
OwnerBrowser
Parent
ParsedElement
ParsingType
TagName
Declaration
public string TagName { get; }
Property Value
System.String
|
TagNameIndex
Declaration
public int TagNameIndex { get; }
Property Value
System.Int32
|
TechnologyType
TextContent
Declaration
public string TextContent { get; }
Property Value
System.String
|
Wait
Methods
AddChild(Element)
AddChildNode(ITargetElement)
Declaration
public void AddChildNode(ITargetElement element)
Parameters
ITargetElement
element
|
Implements
As<TControl>()
Declaration
public TControl As<TControl>()
where TControl : Control, new()
Returns
TControl
|
Type Parameters
TControl
|
Capture()
Declaration
public Bitmap Capture()
Returns
System.Drawing.Bitmap
|
Implements
CaptureImage()
CastIncludingAncestors<TControl>(Int32)
Declaration
public TControl CastIncludingAncestors<TControl>(int depth = 5)
where TControl : Control, new()
Parameters
System.Int32
depth
|
Returns
TControl
|
Type Parameters
TControl
|
ContainsAttribute(iAttribute, Boolean, StringComparison, Boolean)
Declaration
public bool ContainsAttribute(iAttribute attribute, bool usePartialAttributeValue, StringComparison comparison, bool matchQuotes)
Parameters
iAttribute
attribute
|
System.Boolean
usePartialAttributeValue
|
System.StringComparison
comparison
|
System.Boolean
matchQuotes
|
Returns
System.Boolean
|
ContainsAttribute(String)
Declaration
public bool ContainsAttribute(string attributeName)
Parameters
System.String
attributeName
|
Returns
System.Boolean
|
CreateLight(String, Int32)
Declaration
public static Element CreateLight(string tagName, int tagIndex)
Parameters
System.String
tagName
|
System.Int32
tagIndex
|
Returns
Element
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
Overrides
Focus()
Declaration
public void Focus()
FriendlyName()
Declaration
public string FriendlyName()
Returns
System.String
|
GetAttribute(String)
Declaration
public iAttribute GetAttribute(string name)
Parameters
System.String
name
|
Returns
iAttribute
|
GetAttribute(String, Boolean)
Declaration
public iAttribute GetAttribute(string name, bool ignoreCase)
Parameters
System.String
name
|
System.Boolean
ignoreCase
|
Returns
iAttribute
|
GetAttributeValueOrEmpty(String)
Declaration
public string GetAttributeValueOrEmpty(string attrName)
Parameters
System.String
attrName
|
Returns
System.String
|
GetChildren()
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
GetHostParent()
GetNextSibling()
GetParent()
GetPreservedInnerText(Boolean)
Declaration
public string GetPreservedInnerText(bool trimStartEnd)
Parameters
System.Boolean
trimStartEnd
|
Returns
System.String
|
GetPreviousSibling()
GetRectangle()
Declaration
public virtual Rectangle GetRectangle()
Returns
System.Drawing.Rectangle
|
Implements
GetStringPresentation()
Declaration
public string GetStringPresentation()
Returns
System.String
|
Implements
GetTextContentRecursive(String[])
Declaration
public string GetTextContentRecursive(params string[] tags)
Parameters
System.String[]
tags
|
Returns
System.String
|
GetUniqueHashCode()
Declaration
public int GetUniqueHashCode()
Returns
System.Int32
|
Implements
GetValue<T>(String)
Declaration
public virtual T GetValue<T>(string propertyName)
Parameters
System.String
propertyName
|
Returns
T
|
Type Parameters
T
|
GetValue<T>(String, T)
Declaration
public virtual T GetValue<T>(string propertyName, T defaultValue)
Parameters
System.String
propertyName
|
T
defaultValue
|
Returns
T
|
Type Parameters
T
|
GetValue<T>(String, Boolean)
Declaration
[Obsolete]
public virtual T GetValue<T>(string propertyName, bool isJsWrappedObject)
Parameters
System.String
propertyName
|
System.Boolean
isJsWrappedObject
|
Returns
T
|
Type Parameters
T
|
GetValue<T>(String, Boolean, T)
Declaration
[Obsolete]
public virtual T GetValue<T>(string propertyName, bool isJsWrappedObject, T defaultValue)
Parameters
System.String
propertyName
|
System.Boolean
isJsWrappedObject
|
T
defaultValue
|
Returns
T
|
Type Parameters
T
|
IsFrame()
IsFrame(Boolean, Boolean)
Declaration
public FrameInfo IsFrame(bool makeAbsolute, bool stripFinalBrowserSegment = false)
Parameters
System.Boolean
makeAbsolute
|
System.Boolean
stripFinalBrowserSegment
|
Returns
FrameInfo
|
Match(IFindExpression)
Declaration
public bool Match(IFindExpression findExpr)
Parameters
IFindExpression
findExpr
|
Returns
System.Boolean
|
Implements
Refresh()
Refresh(Boolean)
Declaration
public virtual void Refresh(bool forceDomTreeRefresh)
Parameters
System.Boolean
forceDomTreeRefresh
|
SetClosingTag(ITargetElement)
Declaration
public void SetClosingTag(ITargetElement closingElement)
Parameters
ITargetElement
closingElement
|
Implements
SetDepth(Int32)
Declaration
public void SetDepth(int depth)
Parameters
System.Int32
depth
|
Implements
SetParent(ITargetElement)
Declaration
public void SetParent(ITargetElement parent)
Parameters
ITargetElement
parent
|
Implements
SetValue<T>(String, T)
Declaration
public virtual void SetValue<T>(string propertyName, T value)
Parameters
System.String
propertyName
|
T
value
|
Type Parameters
T
|
SetValue<T>(String, T, Boolean)
Declaration
public virtual void SetValue<T>(string propertyName, T value, bool isJsWrappedObject)
Parameters
System.String
propertyName
|
T
value
|
System.Boolean
isJsWrappedObject
|
Type Parameters
T
|
ToString()
Declaration
public override string ToString()
Returns
System.String
|