Class
TranslatorMatch

Class representing a translator match result for a target element

Definition

Namespace:ArtOfTest.Common.Design.Translation

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public class TranslatorMatch

Inheritance: objectTranslatorMatch

Constructors

TranslatorMatch(IControlLocator, ITargetElement, ITargetElement, TranslatorGroup)

Create a new translator match.

Declaration

cs-api-definition
public TranslatorMatch(IControlLocator translator, ITargetElement targetElement, ITargetElement locatorElement, TranslatorGroup group)

Parameters

translator

IControlLocator

targetElement

ITargetElement

locatorElement

ITargetElement

group

TranslatorGroup

Properties

Group

Gets the TranslatorGroup that owns this translator.

Declaration

cs-api-definition
public TranslatorGroup Group { get; }

Property Value

TranslatorGroup

LocatorElement

Gets the element that matched the locator element of this translator. Can be the same as TargetElement, else a parent of target element.

Declaration

cs-api-definition
public ITargetElement LocatorElement { get; }

Property Value

ITargetElement

TargetElement

Gets the target element that was used to match the translator.

Declaration

cs-api-definition
public ITargetElement TargetElement { get; }

Property Value

ITargetElement

Translator

Gets the matching translator instance

Declaration

cs-api-definition
public IControlLocator Translator { get; }

Property Value

IControlLocator

Methods

Clone(ITargetElement)

Clone this Match with a new target.

Declaration

cs-api-definition
public TranslatorMatch Clone(ITargetElement newTarget)

Parameters

newTarget

ITargetElement

Returns

TranslatorMatch

GetIdentifyColor()

Gets the identify color to use for this match.

Declaration

cs-api-definition
public Color GetIdentifyColor()

Returns

Color

The color to use.

GetIdentifyIcon()

Gets the identify icon to use for this match.

Declaration

cs-api-definition
public Image GetIdentifyIcon()

Returns

Image

The image to use.