ClassBaseLocator
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
Namespace:ArtOfTest.Common.Design.Extensibility
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public abstract class BaseLocator : BaseInterfaceInterrogator, IControlLocator, IInterfaceInterrogator
Inheritance: objectBaseInterfaceInterrogatorBaseLocator
Derived Classes:
Implements:
Inherited Members
Constructors
Properties
ControlType
The type of the control locator.
Declaration
public virtual Type ControlType { get; }
Property Value
Implements
Enabled
True/False whether the recording for this control is enabled/disabled
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
public abstract bool IdentifyAsContainer { get; }
Property Value
Implements
IdentifyColor
Identify Color for this locator.
Declaration
public virtual Color IdentifyColor { get; }
Property Value
Implements
IdentifyIcon
Identify Icon for this locator
Declaration
public virtual Image IdentifyIcon { get; }
Property Value
Implements
Locators
Get this control locator.
Declaration
public abstract IFindExpression[] Locators { get; }
Property Value
IFindExpression[]
Implements
Name
The name of this translator.
TechnologyType
Control technology type.
Declaration
public abstract TechnologyType TechnologyType { get; }
Property Value
Implements
TelerikComponentsVersion
The Telerik Components version which should be used by the locator
Declaration
public TelerikComponentsVersion TelerikComponentsVersion { get; set; }
Property Value
Implements
UseDesktopActionsOnly
Gets whether to use desktop actions only (i.e. Flash objects).
Methods
OnAfterContextMenuHide(ITargetElement, ITargetElement)
This method is called right after the designer hides the context menu.
Declaration
public virtual void OnAfterContextMenuHide(ITargetElement locatorElement, ITargetElement targetElement)
Parameters
locatorElement
The translator locator element.
targetElement
The target element.
Implements
OnBeforeContextMenuShow(ITargetElement, ITargetElement)
This method is called right before the designer context menu is about to be shown.
Declaration
public virtual void OnBeforeContextMenuShow(ITargetElement locatorElement, ITargetElement targetElement)
Parameters
locatorElement
The translator locator element.
targetElement
The target element.
Implements
ProvideCustomElementData(ITargetElement, ITargetElement)
Provide custom data to be used for generating element descriptors.
Declaration
public virtual CustomElementData ProvideCustomElementData(ITargetElement locatorElement, ITargetElement targetElement)
Parameters
locatorElement
The translator locator element.
targetElement
The target element.
Returns
Data needed to customize element descriptor.
Implements