Class DesktopElement
Inheritance
System.Object
DesktopElement
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: ArtOfTest.WebAii.dll
Syntax
public class DesktopElement : ITargetElement
Fields
Declaration
protected DesktopFind find
Field Value
Declaration
protected IUIAutomationElement nativeElement
Field Value
|
Interop.UIAutomationClient.IUIAutomationElement
|
Properties
Declaration
public virtual string AutomationId { get; }
Property Value
Declaration
public virtual string ClassName { get; }
Property Value
Declaration
public virtual int ControlType { get; }
Property Value
Declaration
public string ControlTypeName { get; }
Property Value
Declaration
public DesktopFind Find { get; }
Property Value
Declaration
public virtual string FrameworkId { get; }
Property Value
Declaration
public virtual bool HasKeyboardFocus { get; }
Property Value
Declaration
public virtual string HelpText { get; }
Property Value
Declaration
public IAutomationHost Host { get; }
Property Value
Declaration
public virtual bool IsEnabled { get; }
Property Value
Declaration
public virtual bool IsKeyboardFocusable { get; }
Property Value
Declaration
public virtual bool IsOffscreen { get; }
Property Value
Declaration
public virtual string LocalizedControlType { get; }
Property Value
Declaration
public virtual string Name { get; }
Property Value
Declaration
public virtual int ProcessId { get; }
Property Value
Declaration
public virtual string RuntimeId { get; }
Property Value
Methods
Declaration
public T As<T>()
where T : DesktopControl
Returns
Type Parameters
Declaration
public T CastIncludingAncestors<T>(int depth = 5)
where T : DesktopControl
Parameters
Returns
Type Parameters
Declaration
public static DesktopElement FromDesktopRoot()
Returns
Declaration
public static DesktopElement FromScreenCoordinates(int x, int y)
Parameters
|
System.Int32
x
|
|
System.Int32
y
|
Returns
Declaration
public static DesktopElement FromWindowHandle(IntPtr handle)
Parameters
Returns
Declaration
public virtual IEnumerable<DesktopElement> GetChildren()
Returns
Declaration
public virtual DesktopElement GetNextSibling()
Returns
Declaration
public virtual DesktopElement GetParent()
Returns
Declaration
public virtual DesktopElement GetPreviousSibling()
Returns
Declaration
public Rectangle GetScreenRectangle()
Returns
Declaration
public virtual bool IsVisible()
Returns
Declaration
public bool PointsToSameAs(DesktopElement element)
Parameters
Returns
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
Declaration
public bool WaitForNoMotion(int checkInterval = 500, int timeout = 2500)
Parameters
|
System.Int32
checkInterval
|
|
System.Int32
timeout
|
Returns
Explicit Interface Implementations
Declaration
void ITargetElement.AddChildNode(ITargetElement child)
Parameters
Implements
Declaration
Bitmap ITargetElement.Capture()
Returns
Implements
Declaration
ElementImage ITargetElement.CaptureImage()
Returns
Implements
Declaration
int ITargetElement.Depth { get; }
Returns
Implements
Declaration
ITargetElement[] ITargetElement.GetChildren()
Returns
Implements
Declaration
ITargetElement ITargetElement.GetHostParent()
Returns
Implements
Declaration
ITargetElement ITargetElement.GetParent()
Returns
Implements
Declaration
Rectangle ITargetElement.GetRectangle()
Returns
Implements
Declaration
string ITargetElement.GetStringPresentation()
Returns
Implements
Declaration
int ITargetElement.GetUniqueHashCode()
Returns
Implements
Declaration
IAutomationHost ITargetElement.Host { get; }
Returns
Implements
Declaration
bool ITargetElement.IsTestRegion { get; }
Returns
Implements
Declaration
bool ITargetElement.Match(IFindExpression findExpr)
Parameters
Returns
Implements
Declaration
ParsedElement ITargetElement.ParsedElement { get; }
Returns
Implements
Declaration
void ITargetElement.Refresh()
Implements
Declaration
void ITargetElement.SetClosingTag(ITargetElement closingElement)
Parameters
Implements
Declaration
void ITargetElement.SetDepth(int depth)
Parameters
Implements
Declaration
void ITargetElement.SetParent(ITargetElement parent)
Parameters
Implements
Declaration
TechnologyType ITargetElement.TechnologyType { get; }
Returns
Implements