New to Telerik Test StudioStart a free 30-day trial

Definition

Constructors

C#
public DesktopControl()

Fields

C#
protected DesktopElement element

Properties

C#
public DesktopElement Element { get; }
C#
public virtual DesktopFind Find { get; }
C#
[Browsable(false)]
public virtual UserInteraction User { get; }

Methods

C#
protected T CreateOrNull<T>(Func<T> creator)
Parameters:creatorFunc<T>Returns:

T

C#
public bool Exists()
Returns:

bool

C#
protected virtual void InitControl(DesktopElement element)
Parameters:elementDesktopElement
C#
public bool PointsToSameAs(DesktopControl control)
Parameters:controlDesktopControlReturns:

bool

C#
protected void ValidateControlType(int controlType, string controlName)
Parameters:controlTypeintcontrolNamestring
C#
protected void ValidatePatternAvailable(int patternAvailableProperty, string patternName)
Parameters:patternAvailablePropertyintpatternNamestring
C#
public bool WaitFor(Func<bool> predicate, int delay = 500, int timeout = 2500)
Parameters:predicateFunc<bool>delayinttimeoutintReturns:

bool

C#
public bool WaitForNoMotion(int checkInterval = 500, int timeout = 2500)
Parameters:checkIntervalinttimeoutintReturns:

bool