Class
BaseLocator

A generic base translator implementation. Extends BaseInterfaceInterrogator and IControlLocator This class can be used as the base class for any single or combination of ActionTranslator, WaitProvider or VerificationProvider.

Definition

Constructors

BaseLocator()

Create a new translator.

Declaration

cs-api-definition
public BaseLocator()

Properties

ControlType

The type of the control locator.

Declaration

cs-api-definition
public virtual Type ControlType { get; }

Property Value

Type

Implements IControlLocator.ControlType

Enabled

True/False whether the recording for this control is enabled/disabled

Declaration

cs-api-definition
public bool Enabled { get; set; }

Property Value

bool

Implements IControlLocator.Enabled

IdentifyAsContainer

True/False whether to match this control for any of its children. If set to false, only exact matches to FindParam returned by Locators will be passed into this translator

Declaration

cs-api-definition
public abstract bool IdentifyAsContainer { get; }

Property Value

bool

Implements IControlLocator.IdentifyAsContainer

IdentifyColor

Identify Color for this locator.

Declaration

cs-api-definition
public virtual Color IdentifyColor { get; }

Property Value

Color

Implements IControlLocator.IdentifyColor

IdentifyIcon

Identify Icon for this locator

Declaration

cs-api-definition
public virtual Image IdentifyIcon { get; }

Property Value

Image

Implements IControlLocator.IdentifyIcon

Locators

Get this control locator.

Declaration

cs-api-definition
public abstract IFindExpression[] Locators { get; }

Property Value

IFindExpression[]

Implements IControlLocator.Locators

Name

The name of this translator.

Declaration

cs-api-definition
public abstract string Name { get; }

Property Value

string

Implements IControlLocator.Name

TechnologyType

Control technology type.

Declaration

cs-api-definition
public abstract TechnologyType TechnologyType { get; }

Property Value

TechnologyType

Implements IControlLocator.TechnologyType

TelerikComponentsVersion

The Telerik Components version which should be used by the locator

Declaration

cs-api-definition
public TelerikComponentsVersion TelerikComponentsVersion { get; set; }

Property Value

TelerikComponentsVersion

Implements IControlLocator.TelerikComponentsVersion

UseDesktopActionsOnly

Gets whether to use desktop actions only (i.e. Flash objects).

Declaration

cs-api-definition
public bool UseDesktopActionsOnly { get; set; }

Property Value

bool

Methods

OnAfterContextMenuHide(ITargetElement, ITargetElement)

This method is called right after the designer hides the context menu.

Declaration

cs-api-definition
public virtual void OnAfterContextMenuHide(ITargetElement locatorElement, ITargetElement targetElement)

Parameters

locatorElement

ITargetElement

The translator locator element.

targetElement

ITargetElement

The target element.

Implements IControlLocator.OnAfterContextMenuHide(ITargetElement, ITargetElement)

OnBeforeContextMenuShow(ITargetElement, ITargetElement)

This method is called right before the designer context menu is about to be shown.

Declaration

cs-api-definition
public virtual void OnBeforeContextMenuShow(ITargetElement locatorElement, ITargetElement targetElement)

Parameters

locatorElement

ITargetElement

The translator locator element.

targetElement

ITargetElement

The target element.

Implements IControlLocator.OnBeforeContextMenuShow(ITargetElement, ITargetElement)

ProvideCustomElementData(ITargetElement, ITargetElement)

Provide custom data to be used for generating element descriptors.

Declaration

cs-api-definition
public virtual CustomElementData ProvideCustomElementData(ITargetElement locatorElement, ITargetElement targetElement)

Parameters

locatorElement

ITargetElement

The translator locator element.

targetElement

ITargetElement

The target element.

Returns

CustomElementData

Data needed to customize element descriptor.

Implements IControlLocator.ProvideCustomElementData(ITargetElement, ITargetElement)