Class DesktopElement
Inheritance
Inherited Members
Namespace: ArtOfTest.WebAii.DesktopAutomation
Assembly: ArtOfTest.WebAii.dll
Syntax
public class DesktopElement : ITargetElement
Fields
find
nativeElement
Declaration
protected IUIAutomationElement nativeElement
Field Value
Interop.UIAutomationClient.IUIAutomationElement
|
Properties
AutomationId
Declaration
public virtual string AutomationId { get; }
Property Value
System.String
|
ClassName
Declaration
public virtual string ClassName { get; }
Property Value
System.String
|
ControlType
Declaration
public virtual int ControlType { get; }
Property Value
System.Int32
|
ControlTypeName
Declaration
public string ControlTypeName { get; }
Property Value
System.String
|
Find
FrameworkId
Declaration
public virtual string FrameworkId { get; }
Property Value
System.String
|
HasKeyboardFocus
Declaration
public virtual bool HasKeyboardFocus { get; }
Property Value
System.Boolean
|
HelpText
Declaration
public virtual string HelpText { get; }
Property Value
System.String
|
Host
IsEnabled
Declaration
public virtual bool IsEnabled { get; }
Property Value
System.Boolean
|
IsKeyboardFocusable
Declaration
public virtual bool IsKeyboardFocusable { get; }
Property Value
System.Boolean
|
IsOffscreen
Declaration
public virtual bool IsOffscreen { get; }
Property Value
System.Boolean
|
LocalizedControlType
Declaration
public virtual string LocalizedControlType { get; }
Property Value
System.String
|
Name
Declaration
public virtual string Name { get; }
Property Value
System.String
|
ProcessId
Declaration
public virtual int ProcessId { get; }
Property Value
System.Int32
|
RuntimeId
Declaration
public virtual string RuntimeId { get; }
Property Value
System.String
|
Methods
As<T>()
Declaration
public T As<T>()
where T : DesktopControl
Returns
T
|
Type Parameters
T
|
Capture()
Declaration
public Bitmap Capture()
Returns
System.Drawing.Bitmap
|
CastIncludingAncestors<T>(Int32)
Declaration
public T CastIncludingAncestors<T>(int depth = 5)
where T : DesktopControl
Parameters
System.Int32
depth
|
Returns
T
|
Type Parameters
T
|
Exists()
Declaration
public bool Exists()
Returns
System.Boolean
|
FromDesktopRoot()
FromScreenCoordinates(Int32, Int32)
Declaration
public static DesktopElement FromScreenCoordinates(int x, int y)
Parameters
System.Int32
x
|
System.Int32
y
|
Returns
DesktopElement
|
FromWindowHandle(IntPtr)
Declaration
public static DesktopElement FromWindowHandle(IntPtr handle)
Parameters
System.IntPtr
handle
|
Returns
DesktopElement
|
GetChildren()
Declaration
public virtual IEnumerable<DesktopElement> GetChildren()
Returns
System.Collections.Generic.IEnumerable<DesktopElement>
|
GetNextSibling()
GetParent()
GetPreviousSibling()
GetScreenRectangle()
Declaration
public Rectangle GetScreenRectangle()
Returns
System.Drawing.Rectangle
|
IsVisible()
Declaration
public virtual bool IsVisible()
Returns
System.Boolean
|
PointsToSameAs(DesktopElement)
Declaration
public bool PointsToSameAs(DesktopElement element)
Parameters
DesktopElement
element
|
Returns
System.Boolean
|
ScrollToVisible(ScrollOption)
Declaration
public void ScrollToVisible(ScrollOption scrollOption)
Parameters
ScrollOption
scrollOption
|
SetFocus()
Declaration
public void SetFocus()
WaitFor(Func<Boolean>, Int32, Int32)
Declaration
public bool WaitFor(Func<bool> predicate, int delay = 500, int timeout = 2500)
Parameters
System.Func<System.Boolean>
predicate
|
System.Int32
delay
|
System.Int32
timeout
|
Returns
System.Boolean
|
WaitForNoMotion(Int32, Int32)
Declaration
public bool WaitForNoMotion(int checkInterval = 500, int timeout = 2500)
Parameters
System.Int32
checkInterval
|
System.Int32
timeout
|
Returns
System.Boolean
|
Explicit Interface Implementations
ITargetElement.AddChildNode(ITargetElement)
Declaration
void ITargetElement.AddChildNode(ITargetElement child)
Parameters
ITargetElement
child
|
Implements
ITargetElement.Capture()
Declaration
Bitmap ITargetElement.Capture()
Returns
System.Drawing.Bitmap
|
Implements
ITargetElement.CaptureImage()
ITargetElement.Depth
ITargetElement.GetChildren()
ITargetElement.GetHostParent()
ITargetElement.GetParent()
ITargetElement.GetRectangle()
Declaration
Rectangle ITargetElement.GetRectangle()
Returns
System.Drawing.Rectangle
|
Implements
ITargetElement.GetStringPresentation()
Declaration
string ITargetElement.GetStringPresentation()
Returns
System.String
|
Implements
ITargetElement.GetUniqueHashCode()
Declaration
int ITargetElement.GetUniqueHashCode()
Returns
System.Int32
|
Implements
ITargetElement.Host
ITargetElement.IsTestRegion
Declaration
bool ITargetElement.IsTestRegion { get; }
Returns
System.Boolean
|
Implements
ITargetElement.Match(IFindExpression)
Declaration
bool ITargetElement.Match(IFindExpression findExpr)
Parameters
IFindExpression
findExpr
|
Returns
System.Boolean
|
Implements
ITargetElement.ParsedElement
ITargetElement.Refresh()
ITargetElement.SetClosingTag(ITargetElement)
Declaration
void ITargetElement.SetClosingTag(ITargetElement closingElement)
Parameters
ITargetElement
closingElement
|
Implements
ITargetElement.SetDepth(Int32)
Declaration
void ITargetElement.SetDepth(int depth)
Parameters
System.Int32
depth
|
Implements
ITargetElement.SetParent(ITargetElement)
Declaration
void ITargetElement.SetParent(ITargetElement parent)
Parameters
ITargetElement
parent
|